[rrd-users] Question about importing non-realtime CSV data into RRDtool
linux at thehobsons.co.uk
Wed Jan 4 18:23:43 CET 2012
v g wrote:
>I have a question about importing non-realtime data into rrdtool.
> There is an arduino device that logs various parameters and sends
>the CSV to a server once per day. The data is logged for the whole
>day obviously (at an interval of approximately every 20-23 seconds):
> Sample below:
>I am new to RRDtool and would like to create daily, weekly, monthly
>and yearly graphs for all this data. For example, field 13 in the
>data above is btu per/hr.
Really ? It look more like a count of something to me. Or do you mean
field 14 (the last one) ?
>I am fairly new to rrdtool and played around with it and created a
>graph using the following commands (i had to change all the
>date/times to epoch and do an rrdtool update of course):
>rrdtool create btuperhr.rrd --start 1325232008 --step 1
"step 1" is a bit short. It means having 86400 "buckets" per day, and
you then have to process all of those to draw a graph. For a normal
resolution of graph, 60 or 300 seconds is probably enough to keep.
You've also set the min as 1, which means you won't be able to handle
very low output/plant shut down situations. You've then asked RRD to
store 100,000 1 second averaged samples (a little under 28 hours).
>rrdtool graph btuperhr.png --start 1325232008 --title="Boiler BTU
>Dec 30 2011" --vertical-label="BTU per Hr" -x
>the graph on the x axis doesnt look right.
Dunno, I can't see your screen from here ;-) If you want comment on
what it looks like then you'll need to provide an example we can see.
What you are doing is OK in principal - as long as you have
timestamped data, so you can feed it into RRD, and get RRD to munge
it and draw pretty graphs.
Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.
More information about the rrd-users