Can someone please help me to solve the task by counting a gauge value?
I have one metric but it always has different device labels, and it can only be 1 or 0, where 1 = error and 0 = OK.
I need to calculate the number of times when metrics were 1 by range variable provided in Grafana.
I tried operators sum, sum_over_time, and count and only sum_over_time provides truth result, but for some reason, it shows me one value multiple times
sum_over_time(aqa_device_health_checker{env="dev", device="FOO"}[1d])