[rrd-users] rrd daily, monthly, weekly, yearly...

Simon Hobson linux at thehobsons.co.uk
Thu Nov 22 19:39:19 CET 2007


Wernher Eksteen wrote:

>  > So if you will need max in the future store max, if you will need
>>  average then store average, if you will need min then store min - if
>>  you need all three then you store all three (they are different, 24,
>  > 1, 0 in the example I've just given).



>Ok so if I'm understandin you right, what you're saying is this...
>
>For AVERAGE this rrd is fine:
>
>  rrdtool create "${1}" \
>        DS:in:DERIVE:600:0:12500000 \
>        DS:out:DERIVE:600:0:12500000 \
>        RRA:AVERAGE:0.5:1:576 \
>        RRA:AVERAGE:0.5:6:672 \
>        RRA:AVERAGE:0.5:24:732 \
>        RRA:AVERAGE:0.5:144:1460
>
>For MAX I need to change it to:
>
>rrdtool create "${1}" \
>        DS:in:DERIVE:600:0:12500000 \
>        DS:out:DERIVE:600:0:12500000 \
>        RRA:MAX:0.5:1:576 \
>        RRA:MAX:0.5:6:672 \
>        RRA:MAX:0.5:24:732 \
>        RRA:MAX:0.5:144:1460
>
>For MIN I need to change it to:
>
>rrdtool create "${1}" \
>        DS:in:DERIVE:600:0:12500000 \
>        DS:out:DERIVE:600:0:12500000 \
>        RRA:MIN:0.5:1:576 \
>        RRA:MIN:0.5:6:672 \
>        RRA:MIN:0.5:24:732 \
>        RRA:MIN:0.5:144:1460
>
>And to have them all (MIN,  MAX and AVERAGE) can I do this?
>
>rrdtool create "${1}" \
>        DS:in:DERIVE:600:0:12500000 \
>        DS:out:DERIVE:600:0:12500000 \
>        RRA:MIN:0.5:1:576 \
>        RRA:MAX:0.5:1:576 \
>        RRA:AVERAGE:0.5:1:576 \
>        RRA:MIN:0.5:6:672 \
>        RRA:MAX:0.5:6:672 \
>        RRA:AVERAGE:0.5:6:672 \
>        RRA:MIN:0.5:24:732 \
>        RRA:MAX:0.5:24:732 \
>        RRA:AVERAGE:0.5:24:732 \
>        RRA:MIN:0.5:144:1460
>        RRA:MAX:0.5:144:1460
>        RRA:AVERAGE:0.5:144:1460

Yes, obviously you can just store what you need (eg max and average), 
and you don't have to graph things just because you've stored them 
(eg you can store min, max, and average but only graph average, or 
average&max etc).



More information about the rrd-users mailing list