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!


-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-developers/d99475a4-f3df-40d0-84e1-38478c74c2d9%40googlegroups.com.

Reply via email to