Hello all,
I'm a little stuck with this one as i don't understand how to do it with and maybe you could help me with this one.
I scrap an APC every 5 min to get the instant power consumption
And i would like to calculate the average consomption of every hour and then sum up this average to get the daily consomption in grafana.
Something like this:
![]()
i've tried
(sum_over_time((avg_over_time({metric="Consomation", __name__="snmp_value"}[1h]))[24h]))
But the data seem wrong, and grafana is showing data per hour
Do you know the correct way to do it ?
Malek