Hello.
I am a beginner with Grafana logging absolute power consumption data via openHAB to an influxDB instance every minute in kWh.
I’d like to visualize the power consumption per day and month.
Here are the questions:
At the moment I’m using the following query to visualize the daily power consumption:
SELECT spread("value") FROM "waermepumpeZaehlerImpulseKWh" WHERE $timeFilter GROUP BY time(1d) fill(none)
-
This shows me the correct values. Now I’d like to get rid of the
$timeFilter
. I want it to be fixed to the last 7 days or the last month. I read that this should be working by configuring theRelative time
but I can’t get it to work. Which is the correct way to get that to a fixed relative range? -
Is there a possibility to group it by month in influxDB?
1m
didn’t work. -
Is there a way to filter out grouped values? (having doesn’t exist in influxDB) I’d like to get rid of some incorrectly logged data which break the visualisation.
Thank you very much in advance.
Regards,
Denis