I have metrics provided by several processes:
subsystem_connected{subsystem="ABC"}
This has a value of 0 or 1, and each process has a different subsystem label. Within Grafana, I want to do a couple of things:
- Display a count how many are connected (value=1)
- Display the list of subsystem values where value=1
I keep thinking I've got it with functions like count_value, etc, but end up just displaying the number of labels regardless of metric value.
Can anyone help me with sample PromQL queries?
Many thanks.