I’m getting a mean values within 1min window with the first query
in order to run a 2nd query on the result to sum up the values with a different time window.
This, I guess, gives you the average watts used per second, but I don’t think this is is necessary or even desired for this query.
Why are you doing 1m averages and then summing them in 1h hour intervals? Why not just sum all the values into 1h hour intervals? Getting the average seems unnecessary.
I guess I just don’t fully understand the result you’re trying to return. From the description you provided, I think the following query should give you what you’re looking for:
Your questions gave me the answer I was looking for.
the value on it’s own is Watts-per-minutes, hence I divide by 60min to convert it into Watt-per-hour.
because of Grafana memory limitations
I was trying to do nested queries “SELECT xyz FROM (SELECT abc FROM dfg WHERE 1) WHERE 1” in Flux 2.0 syntax, which apparently is only supported in v1 and v3, but not v2.