-
What Grafana version and what operating system are you using?
Grafana 11.3.0 on OpenSuse Tumbleweed -
What are you trying to achieve?
Get liters available in a tank in a time series starting from the last filling date (up to ~2 years) to now by summing used liters (calculated from active consumption seconds per day) from an influx db -
How are you trying to achieve it?
I have this sql that shows the curently remaining liters:
SELECT 7000 - sum(“active”) / 2877086 * 3259 FROM “heating” WHERE time > ‘2024-06-12T00:00:00Z’ -
What happened?
The panel shows only the one correct value of today
I have difficulties expanding this to getting a value for each day not just for now.
End result should be a panel that starts at the last filling date (no need for this to be variable) and ends today. It should show the diminishing available liters for each day.
7 posts - 2 participants