You could create a recording rule like this: - record: active_instances expr: up == 1
Otherwise you can use a normal query and parse out the instances. On Sun, Feb 12, 2023 at 6:55 PM Kishore Chopne <[email protected]> wrote: > Hi, > I am trying to get only active instances in my dashboard for this I > need to only get active instances in the variable using > label_values(grafana) and up==1. > However, I am unable to use up==1 with label_values function in Grafana. > is there an alternate way to only show active instances on the dashboard. > Thanks in advance. > > /Kishore > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/prometheus-users/809b1774-1ad3-4a64-a691-3a9c8a44410fn%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/809b1774-1ad3-4a64-a691-3a9c8a44410fn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CABbyFmq5OJD9qPNtj8mMfz3QfRAXbFTwMPhOSRGrFZdrTPiOSA%40mail.gmail.com.

