I’m currently trying to display the daily and monthly power consumption using the “estimated input power” metric retrieved from my PSU (hx1200i). I was able to get this metric into Grafana using the liquidctl-exporter. Now I’m trying to translate this into the total consumed power (kwh) per hour/day and month.
I found this forum post post in which a user tried to do this. However, I used Prometheus, and so I can not use the syntax used there.
To get a plot of the KWH per hour, I now use the following syntax:
Gives me a bad_data: 1:15: parse error: expected type range vector in call to function "sum_over_time", got instant vector error which makes sense. I therefore tried to convert my previous result into a range vector using:
So basically instead of the sum growing after the outage it wen back to 0 and started from there, even though I increased the range. Any idea how to fix this ?
Hey @gyulahalmos! Apologies for missing your comment; didn’t catch the notification. I hope you’ve tackled the issue. I’m a bit unclear about your objective, but I typically utilize Bar plots to illustrate energy consumption within a designated range, defined by the Min interval parameter.
Judging by your image, it seems like you’re aiming for a cumulative consumption display. If that’s the case, consider using:
Also, take advantage of Grafana’s transform feature to address any NaN values that might pop up. Let me know if that aligns with what you’re aiming for!