Hello everyone,
I am looking to match a metric path such as
"panos.device1:entity1"
in order to be translated into prometheus labels such as :
test_graphite_metric{device="device1",entity="entity1",instance="localhost:9108",job="test_graphite",tsdb="prometheus"}
Can i achieve this somehow with a regex or '*'s act as wildcards for ONLY dot-separated metrics ?
Some of my non successful attempts include the following mapping (mentioning it here to be somewhat more clear what i want to achieve)
- match: panos.*\\:*
match_type: regex
name: test_graphite_metric
labels:
device: $1
job: test_graphite
entity: $2
Thanks in advance!