I know there is `external_labels` and `labels` under static_configs. The first only applies labels to external systems (as the name implies), and the second only applies to the static targets specified.Is there a way to apply a global label to all scrape targets?
The desire is to have a "datacenter" label for one or more instances that will be scraped by a central instance a la /federate. Yes, I can add datacenter as an `external_label`, but there is also a desire to write only one set of queries/dashboards. If they are written with the datacenter label in mind via a grafana template variable, then those same dashboards won't work if/when copied to look at a localized prometheus instance.
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/ac4a6c4e-7ea4-461d-8ee1-78943bba5149%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Grafana can template which Prometheus server to talk to for a dashboard, avoiding the need to federate any data to have a single dashboard for all datacenters.
On Thu, Jul 13, 2017 at 12:18 AM, <jer...@doupe.com> wrote:
I know there is `external_labels` and `labels` under static_configs. The first only applies labels to external systems (as the name implies), and the second only applies to the static targets specified.Is there a way to apply a global label to all scrape targets?The desire is to have a "datacenter" label for one or more instances that will be scraped by a central instance a la /federate. Yes, I can add datacenter as an `external_label`, but there is also a desire to write only one set of queries/dashboards. If they are written with the datacenter label in mind via a grafana template variable, then those same dashboards won't work if/when copied to look at a localized prometheus instance.
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/9376012f-4ba3-4780-a5d1-395fa9260ad1%40googlegroups.com.