I have prometheus metrics from N number of hosts, each with two different components as lables:
my_status{host="H1", component="a"}
my_status{host="H1", component="b"}
my_status{host="H2", component="a"}
my_status{host="H2", component="b"}
...
my_status{host="HN", component="a"}
my_status{host="HN", component="b"}
my_status is an integer between 0 and 2.
I want to count how many hosts have a my_status of 2 for both components.
How do I do this in Grafana?