Hey Everyone,
On my 4.1 clusters I started to see this error:
invalid metric name or label names: {__name__="mcac_hints_hints_not_stored.10.10.10.10.7000_total", cluster="example", dc="DC2", instance="10.10.10.10", job="mcac", mcac="org.apache.cassandra.metrics.hints_service.hints_not_stored.10.10.10.10.7000", mcac_filtered="true", rack="RAC1"}
I managed to fix my scraping by adding this to the config:
- source_labels: [ "mcac" ]
regex: org\.apache\.cassandra\.metrics\.hints_service\.hints_not_stored\.([^\-]+)
target_label: __name__
replacement: mcac_hints_not_stored