[rrd-users] Re: simple issues

Andrew Culver aculver at uwo.ca
Fri Aug 1 16:44:22 MEST 2003


Hunter,

Ah, I see the problem now. It didn't occur to me at first. Your data type is
a counter. If these numbers you are feeding are infact the actual increase
in data flow between one reading and the next, then use the data type
ABSOLUTE which assumes the data your feeding comes from a counter which is
reset to 0 upon reading.

The reason for the huge spike is the data type COUNTER assumes that the
numbers will never decrease UNLESS the counter overflows. Since you are
decreasing from 80,000 to 70,000, rrdtool knows that counters don't
decrease, so it assumes the counter increased so much that it overflowed. It
then calculates how much of an increase was neccessary to cause an overflow
that would result in a final value of 70,000 -- which is several million.

If you change your data type to ABSOLUTE, you should get something more like
what you were expecting. (I tried it with your data and it worked for me.)

PS. I your mail server filtered out the "bad word" from your rrdtool command
below. I changed it to "bleh."


----- Original Message ----- 
From: "Hunter Peress" <hunterp at fastmail.fm>
To: "Andrew Culver" <aculver at uwo.ca>
Sent: Friday, August 01, 2003 1:11 AM
Subject: Re: [rrd-users] simple issues


> http://24.175.39.66/~hperes/speed.png
> As you can see, i even made the heightxwidth 800x600 and the graph is
> still wierd. I even changed the colors for  this one be not the same.
>
> and this graph shows me NO evidence that there are 6 data points over 2
> data sets. it merely looks like 4 data points over 1 set.
>
> Also, this scale of megabytes is not what i want. clearly i want the
> scale to be "12,000-100,000"
>
>
>
> On Thu, 2003-07-31 at 14:25, Andrew Culver wrote:
> > Considering you have only 6 data points per line, I don't see what you
think
> > looks wrong. They are overlapping at the bottom because the data points
are
> > so close. If you want, try using --height 300 or something larger to get
a
> > larger area, you would probably be able to see that the lines are both
there
> > without the overlap. Also, if you're going to call the output file
speed.png
> > make sure you use --imgformat PNG in your graph command so rrdtool will
> > actually write the images in PNG format.
> >
> > As for your 2nd question, I don't think graphing 140 lines on the same
graph
> > is the right way to go about it, unless you make a giant poster-sized
image.
> > It will be far too cluttered to tell anything other than extreeme values
> > which diverge from the clutter. If the numbers are all related (and
since
> > you're trying to put them on the same graph, I assume they are all
related),
> > you might want to only graph the total, average, min and/or max of the
140
> > values.
> >
> > Andrew
> >
> > ----- Original Message ----- 
> > From: "Hunter Peress" <hunterp at fastmail.fm>
> > To: <rrd-users at list.ee.ethz.ch>
> > Sent: Thursday, July 31, 2003 1:26 PM
> > Subject: [rrd-users] simple issues
> >
> >
> > > I have 140 datastreams im trying to graph. I cant even do 2.
> > >
> > > As you can see i WANT 2 lines. one is in the 12000,12500 range and the
> > > other is in the 12000,90000 range. The graph is just terrible looking.
I
> > > want to be able to clearly see both graphs.
> > >
> > >
> > > rrdtool create test.rrd             \
> > >         --start 920804400          \
> > >         DS:speed:COUNTER:600:U:U   \
> > >         DS:bleh:COUNTER:600:U:U   \
> > >         RRA:AVERAGE:0.5:1:24       \
> > >         RRA:AVERAGE:0.5:6:10
> > >
> > > rrdtool update test.rrd 920804700:12345:12500 920805000:12357:13000
> > > 920805300:12363:13200
> > > rrdtool update test.rrd 920805600:12363:80000 920805900:12400:70000
> > > 920806200:12500:90000
> > >
> > > rrdtool graph speed.png                              \
> > >      --start 920804400 --end 920808000               \
> > >      DEF:inoctets=test.rrd:speed:AVERAGE        \
> > >      DEF:outoctets=test.rrd:bleh:AVERAGE       \
> > >      LINE1:outoctets#0000FF:"Out traffic" \
> > >      LINE2:inoctets#0000FF:"In traffic"
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > 2nd question: does anyone know of any graphs with 140 (or close)
> > > datastreams? why? because i dont want to pick out 140 different colors
> > > if someone has done it before. i realize that i could do a chromatic
> > > sequence.
> > >
> > > --
> > > 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
> >
> >
>

--
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