Prometheus Gauge Metric: Inconsistent Sum Over Time for Device Status
I have a gauge metric that tracks device_status (ON/OFF). I would like to determine how many seconds a device was ON for a given period (e.g., yesterday, the current week, or the current month).