Hi,
I’m using Grafana with Prometheus to monitor some smart outlets (like the microwave or TV) with watt consumption, but I also want to monitor the time that they are ON. But they’re “on” also when they are in standby, because they drain few watts but for the metrics, 0 off, 1 on. And if I simply use
(switch_outlet_in_use[$__range])
They appear always ON, instead I’m trying to do something like
sum_over_time(switch_current_consumption_w{name=~"Lavatrice|Microonde|Phon|Ferro stiro|Computer|TV"}[$__range])
But I can’t find a way to pick only the queries above 5 (watt of standby i.e.) and then make the sum. Because if I use the above query they appear also always ON, because of the few watt of standby, instead my goal is to have a 0 value for all the metrics below 5 watt.
This is possible?
Thanks a lot!