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.
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.
I am afraid that what you describe may not be possible using InfluxQL. Have you explored using Flux or SQL? Both offer much more powerful functions that should allow you to achieve what you wish.
InfluxDB is a connected datasource for Grafana. If you are able to see Influx data in Grafana, then it is running somewhere (could be on prem or Cloud). It’s really tough to offer any guidance unless one can isolate the problem, and in this case, I think it means running the Flux query in Influx Data Explorer.
Hi @grant2 I suspect it is indeed running on Cloud, but I did not set up this whole structure and I am not an admin in this Grafana environment. Is there a way for me to get to this Influx Data Explorer when it is not running locally?
Thanks again, and sorry for the vagueness. It might just be better to contact the admin.