[rrd-users] setting correct RRA step,rows
raptor
raptor at tvskat.net
Sat Jan 10 13:43:43 MET 2004
hi,
I would like to ask is my calculations correct.. what I want is to display as much as better graphics..
so here goes.. with the deafult rrdgraph-image-with I have 400px usable area for plotting the
data. Now with this in mind I have to calculate the correct "steps" in RRA.
/cdp-interval is 5 min = 300sec, time is interval for which i need graphics/
(time/cdp-interval) * steps = image-useble-width
steps = (time/cdp-interval)/image-useble-witdh
steps = time/(cdp-interval * image-useble-witdh)
steps = time/(300 * 400)
steps = time/120 000
Now if I want to calculate this for day(86400 sec), week (604800), month (18748800), year (31536000)
steps = 86400/120 000 = 0.72 => 1
steps = 604800/120 000 = 5.04 => 5
steps = 18748800/120 000 = 156.24 => 156
steps = 31536000/120 000 = 262.8 => 263
so my rrdcreate should be :
"RRA:AVERAGE:0.5:1:400", #day, it can be 288 instead 400
"RRA:AVERAGE:0.5:5:400", #week
"RRA:AVERAGE:0.5:156:400", #month
"RRA:AVERAGE:0.5:263:400", #year
Is my calculations correct... !!!!
If they are correct put them in some how-to :")
tia
--
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