[rrd-users] Re: help

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Mon Aug 13 23:44:32 MEST 2001


Collins, Eric S. wrote:

> 	I want to store just over 1 years worth of data in my rrds. I'm
> quite a bit off on the number of values to store. I want to be able to
> accurately graph 1 hour, 1 day, 1 week, 1 month, 1 year. 
> 
> Here's what I have..

> rrdtool create /usr/local/rrdwork/rrds/$1.rrd --step 60     \

step 60 ---> each PDP is 60 seconds large.  A PDP is the
normalized (resampled) interval that RRDtool uses.

> DS:ld_avg:GAUGE:120:-3:75 \

at least every 120 seconds expect ld_avg, it should fall in the
range of -3 to 75 (both inclusive)

> DS:users:GAUGE:120:0:130  \    etcetera
> DS:tout:GAUGE:120:0:300  \
> DS:tout2:GAUGE:120:0:15000 \
> RRA:AVERAGE:0.5:1:1200      \

store 1200 CDPs of 1 PDP each.  Each PDP is 60 seconds so each CDP
in this RRA is 60 seconds.  The total amount is 1200*60 seconds is
72000 seconds is 20 hours
                               
> RRA:AVERAGE:0.5:5:700      \

store 700 CDPs of 5 PDPs each.  Each PDP is 60 seconds so each CDP
in this RRA is 300 seconds (5 minutes).  The total amount is 700*300
seconds is 210000 seconds is 58 hours 20 minutes.

> RRA:AVERAGE:0.5:15:730     \
store 730 CDPs of 15 PDPs each.  Each PDP is 60 seconds so each CDP
in this RRA is 900 seconds (15 minutes).  The total amount is 730*900
seconds is 657000 seconds is 182 hours 30 minutes.

etcetera.


If you want to graph 1 hour, 1 day, 1 week, 1 month, 1 year, then you
do the following calculations:

Each PDP is 60 seconds (1 minute) and this is the base of everything
else.  Change this and you need to change the calculations below
accordingly.

The best approach is to work from a standard image size (or rather:
canvas size) of 400 pixels.  Each pixel should represent a whole
number of PDPs.  (or, a whole number of pixels should match one PDP).

If you want to show an hour, show more than one hour.  1h20m is 80
minutes is 5 pixels per PDP.  You need an RRA of at least 80 CDPs
and each CDP is 1 PDP:

RRA:AVERAGE:0.5:1:80   (you probably want to have a few more rows).

One day or more:  1440 minutes or more.  1600 minutes nicely fits
on 400 pixels.  Each pixel represents 4 PDPs so each CDP should be
4 PDPs.  You need 400 of such CDPs:

RRA:AVERAGE:0.5:4:400  (again: a few more rows doesn't hurt)

(if you'd work with 3 PDPs per CDP, you'd get 400 pixels * 3 PDPs
per CDP is 1200 PDPs is 1200 minutes is less than one day).

Same calculations for week,month and year.  Same numbers for maximum,
minimum and average.

HTH
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. | 
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list