Hi, I want to create a dashbaord were (among other things) the energy consumption per month and year is displayed. I read a lot of threads were other have the same problem / they don´t know how to do this correctly.
I´m running InfluxDB v1.8.4 with Grafana v7.5.3.
At the moment I doing the monthly report like this: SELECT count(distinct("value")) / 1000 FROM "autogen"."Arbeitszimmer_Steckdose_Schreibtisch_EnergyTotal" WHERE $timeFilter GROUP BY time(30d,-2h) fill(none)
But here I´m using not a “real month”, e.g. with just 28 or 31 days.
Anything SQL-based should support this, e.g. Postgres, Timescale, MySQL, others too I’m sure
To be clear, this isn’t an inherent limitation of Influx - it’s just related to the (legacy) InfluxQL query language. Querying using the newer Flux language overcomes the limitation.