How to differentiate similar metrics in grafana?

7 views
Skip to first unread message

Mohammad Khoschnasar

unread,
Dec 6, 2021, 3:54:03 AM12/6/21
to Grafana Developers
Hi,

I have two Traefik instances. The metrics of those two are going to one prometheus instance. In prometheus.yml, I have defined two jobs under the scrape_config and now in grafana I want to separate the services that coming from Traefik-A from the services coming from Traefik-B. I tried to use dependent variables as below:

label_values(up, instance)
label_values(up{instance="$instance"}, service)

But it doesn't show the proper values, but "none"! I tried other combinations but no luck.
You guys have any idea?

Thanks
Reply all
Reply to author
Forward
0 new messages