[rrd-users] Stop it creating averages of the values...

Michael Ditum mike at mikeditum.co.uk
Wed Oct 26 12:19:59 MEST 2005


This seems like a really newbie question but I've read all the
documentation I can find and still cannot fix it so I assume I am
misunderstanding something...

I am trying to create graphs with rrd to monitor the number of errors
in a video stream. I want to have granularity down to every 1 minute.

For most of the time I get 0 errors in a minute but roughly every 10
minutes or so I get 4 errors. However the graphs that are being
created do not show this correctly.

My rrd file was created with the following

rrdtool create /root/test/test_1_errors.rrd --step 60 \
	DS:errors:COUNTER:60:0:U \
	RRA:AVERAGE:0.5:1:60

I wanted to do a graph showing the number of errors in the last hour
hence the "RRA:AVERAGE:0.5:1:60"

I've created a script where every 2 minutes it increases the number of
errors by 4 and I'm using rrdtool dump to view the data.

Instead of getting...

<!-- 2005-10-26 11:09:00 BST --> <row><v> 0.0000000000e+00 </v></row>
<!-- 2005-10-26 11:10:00 BST --> <row><v> 4.0000000000e+00 </v></row>
<!-- 2005-10-26 11:11:00 BST --> <row><v> 0.0000000000e+00 </v></row>
<!-- 2005-10-26 11:12:00 BST --> <row><v> 4.0000000000e+00 </v></row>

I get...

<!-- 2005-10-26 11:09:00 BST --> <row><v> 0.0000000000e+00 </v></row>
<!-- 2005-10-26 11:10:00 BST --> <row><v> 6.6666666667e-02 </v></row>
<!-- 2005-10-26 11:11:00 BST --> <row><v> 0.0000000000e+00 </v></row>
<!-- 2005-10-26 11:12:00 BST --> <row><v> 6.6666666667e-02 </v></row>

Now 6.6666666667e-02 is 4 / 60 so it seems to be taking an average of
the value passed in... I assume its due to the AVERAGE in the
following line... "RRA:AVERAGE:0.5:1:3000" but I can't work out what I
should change it to.

Any help would be greatly appreciated.

Mike

--
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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list