I have servers divided into groups (development, production, etc.). I have assigned a corresponding 'group' label to my Prometheus time series.
I can easily populate a 'group' drop-down in Grafana by using the query 'label_values(group)', but to get a drop-down of servers belonging to that group I have use a query like 'query_result(node_time{group="$group"})' with a regex of '.*instance="([^"]*)".*'.
Is this the correct approach, or am I missing a more obvious solution?
Regards
Andrew
--
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 prometheus-devel...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
| $my_os |
| $machines |