Smoothing a non-counter graph
Asked Answered
M

1

5

I am graphing the node_hwmon_temp_celsius metric from prometheus and would like to smooth out the graph a little as it's quite sensitive (1/3 of a degree) and shows a lot of spikes when the obvious trend would be more useful to see. The attached shows system temps in green and HDD temp (via smartmon) in yellow.

enter image description here

I have tried changing the Grafana resolution but that results in the same spikes, just "aliased". I've also tried the rate() function in Prometheus but the graph is nonsensical (with values range from 0-2) as I believe rate() needs a to work on a counter.

How can I smooth out these "absolute" values over time?

Macle answered 20/8, 2020 at 15:37 Comment(0)
M
10

I'm not sure how I missed it, but the prometheus avg_over_time function does what I want.

Macle answered 20/8, 2020 at 15:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.