[rrd-users] Average value over last ten minutes?

Per Rovegård per.rovegard at gmail.com
Sun Jul 8 20:24:53 CEST 2012

On Sun, Jul 8, 2012 at 3:50 PM, Jack Bates <7tx7id at nottheoilrig.com> wrote:
> Is it possible to get an average value over the last ten minutes from RRD?

I use rrdtool xport and TRENDNAN to get a rolling average over ten
minutes for the last hour. Something like this:

rrdtool xport --start end-1h \
DEF:raw=/path/to/file.rrd:x:LAST \
CDEF:rolling=raw,600,TRENDNAN \

The update interval is 60 seconds, and the LAST RRA has this interval
as well. The RRA stores a total of 70 minutes of data so that the
rolling average is valid from the first minute of the queried hour.


More information about the rrd-users mailing list