Percentage of boolean value over time - Grafana

@0803xiaoqiao

If you are using Flux, do any of these solutions help?

Count how long a value is 1 or 0 (on or off)
Calculating total ON or OFF time for a period (day, month, etc.).
Computing duration of a state using events.duration function