Difference between revisions of "RRDTool"

Jump to navigation Jump to search
592 bytes added ,  08:33, 21 January 2010
m
→‎Create a Database: Corrected and annotated rrdtool create command
m (Formatted "Create a database")
m (→‎Create a Database: Corrected and annotated rrdtool create command)
Line 36: Line 36:
** 366 day coverage = 366 x 24 x 60 = 527,040 mins = 527,040 / 24 x 60 = 366 averaged data points
** 366 day coverage = 366 x 24 x 60 = 527,040 mins = 527,040 / 24 x 60 = 366 averaged data points


rrdtool create esx1-cpu.rrd --step 20 \
The format of the create command is shown here http://oss.oetiker.ch/rrdtool/doc/rrdcreate.en.html, for the above example this becomes
DS:CPU-Aggregate:GAUGE:40:0:100 \
<pre>
RRA:AVERAGE:0.5:1:2160 \
rrdtool create svr-cpu.rrd --step 20 \                   # Filename and raw data point interval
RRA:AVERAGE:0.25:15:1440 \
DS:CPU-Aggregate:GAUGE:40:0:100 \         # The Datasource: name, type, max interval, min value, max value
RRA:MIN:0.25:15:1440 \
RRA:AVERAGE:0.5:1:2160 \                 # Raw data 'averaged' over 1 data point, ie raw data
RRA:MAX:0.25:15:1440 \
RRA:AVERAGE:0.25:15:288 \                 # Raw data averaged over 15 data points, 288 averages stored
RRA:MIN:0.25:15:288 \                     # Minimum value of raw data over 15 data points, 288 mins stored
RRA:MAX:0.25:15:288 \                     # Maximum value of raw data over 15 data points, 288 maxs stored
RRA:AVERAGE:0.25:60:504 \
RRA:AVERAGE:0.25:60:504 \
RRA:MIN:0.25:60:504 \
RRA:MIN:0.25:60:504 \
Line 51: Line 53:
RRA:MIN:0.25:4320:366 \
RRA:MIN:0.25:4320:366 \
RRA:MAX:0.25:4320:366
RRA:MAX:0.25:4320:366
</pre>

Navigation menu