Is there a way to get a moving average in Grafan?

I did not find the moving average function, and I am wondering if there is a workaround.

I use infuxdb as a backend.

+4
source share
2 answers

Grafana itself does not perform calculations, it just asks for a backend and draws good diagrams. Thus, aggregation abilities depend solely on your backend. Although Graphite supports window features such as moving average, InfluxDB does not currently support it.

infuxdb . "+1" https://github.com/influxdb/influxdb/issues/77

( ) - script (cron, daemon, whatever), MA infuxdb.

+8

Grafana movingAverage(). , ( ) :

screenshot showing movingAverage () call

, , , movingAverage() :

movingAverage(seriesList, windowSize)

( ) .

List, N , 1hour 5min (. / render_api_ ). . "".

:

&target=movingAverage(Server.instance01.threads.busy,10)
&target=movingAverage(Server.instance*.threads.idle,'5min')
+11

All Articles