- What Grafana version and what operating system are you using?
Grafana v10.4.0 for Windows
- What are you trying to achieve?
I want to calculate the average and total values of electricity consumption of a system that has varying states. I have both system state and consumption in a timeseries panel on my dashboard.
- How are you trying to achieve it?
I am trying with additional queries and the classical expression.
Image may be NSFW.
Clik here to view.
Where B is my system state value and A is the electricity consumption.
- What happened?
Nothing
- What did you expect to happen?
When the system is in state X it should output the mean and total consumption for that specific period that the system was in state X. Same for the next state Y.
6 posts - 2 participants