[rrd-users] long-term data in RRA
Volker Jahns
volker at thalreit.de
Sun Oct 17 21:55:37 CEST 2010
I would like to keep long-term sensor data in round robin archives for display over periods of
- 10 years
- 20 years
- 40 years
( including short-term data of 2 days, 2 weeks and 2 years)
Based on Alex van den Bogaerdt' proposal the following rra creation seems appropriate to me
# 40 years:
# 7 archives
# average over 1 measurement with 576 rows = 300 * 1 * 576/86400 = 2 d
# average over 7 measurements with 576 rows = 300 * 4 * 576/86400 = 14 d
# average over 30 measurements with 576 rows = 300 * 30 * 576/86400 = 60 d
# average over 360 measurements with 576 rows = 300 * 360 * 576/86400 = 720 d ( 2 years)
# average over 1826 measurements with 576 rows = 300 * 1826 * 576/86400 = 3652 d ( 10 years)
# average over 3652 measurements with 576 rows = 300 * 3652 * 576/86400 = 7304 d ( 20 years)
# average over 7304 measurements with 576 rows = 300 * 7304 * 576/86400 = 14608 d ( 40 years)
#
rrdtool create Temperature1_40years.rrd --step 300 \
DS:temperature:GAUGE:600:-100:100 \
RRA:AVERAGE:0.5:1:576 \
RRA:AVERAGE:0.5:7:576 \
RRA:AVERAGE:0.5:30:576 \
RRA:AVERAGE:0.5:360:576 \
RRA:AVERAGE:0.5:1826:576 \
RRA:AVERAGE:0.5:3652:576 \
RRA:AVERAGE:0.5:7304:576
Is this essentially correct or is there something I am missing ( assuming that I want images of 576 pixels)?
What kind of rra are others using to hold long-term data?
Any help is much appreciated.
--
Volker Jahns, volker at thalreit.de
More information about the rrd-users
mailing list