[rrd-users] Fetching raw data
lukeburden at gmail.com
Thu Mar 20 23:41:14 CET 2008
What I'm trying to achieve with RRDTool is quite simple, and I believe
possible with RRD - I just need you guys to run your eyes over my case and
point out where my misunderstanding of your code is.
I have a time series, with samples each 1 minute. I want to store this in
an RRD, and retrieve consolidated values to facilitate a zoomable graph
front-end. This works a treat, but what I want to do as well as fetching
consolidated data from the RRD is to be able to pull that original data out
at full resolution too.
I figured that an RRA:AVERAGE with 1 step and a heartbeat of 60 secs would
do the trick as long as there were only ever 1 sample updated per 60 second
period. But I can't get this to work! I thought it might be the AVERAGE
function doing sneaky things, but LAST and MAX give exactly the same fetch
*I'm creating the graph using:*
rrdtool create subset.rrd -b 1199103570 -s 60 DS:users:GAUGE:60:0:1000000
RRA:MAX:0.5:1:525600 RRA:LAST:0.9:1:525600 RRA:AVERAGE:0.9:1:525600
*Then updating with the following data:*
*Then the following fetches:*
rrdtool fetch subset.rrd AVERAGE -r60 -s1199103590 -e1199104202
rrdtool fetch subset.rrd LAST -r60 -s1199103590 -e1199104202
rrdtool fetch subset.rrd MAX -r60 -s1199103590 -e1199104202
Clearly there is something going on here which I don't understand. Anyone
care to explain how I can get at the raw numbers?
On another issue, are there any plans for RRDTool supporting calendar
monthly consolidations, or is this best done using daily consolidations and
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rrd-users