[rrd-users] Re: problem with displaying metrics of different ranges

Charles Li cli168 at yahoo.com
Wed Feb 23 17:28:31 MET 2005


The problem with my data is that the number varies. 
Is there a way to get the MAX value out, so I can use
in the CDEF.

For example, I can do this:
CDEF:aline4=line4,10,/
But, instead of a static value of 10, I need a dynamic
value that depends on the MAX value of the metric.

I was hoping to get that information from the info,
but all I got for the .max was a NaN:
[oracle at epic12 epic227]$ rrdtool info epic227.rrd
filename = "epic227.rrd"
rrd_version = "0001"
step = 60
last_update = 1109175738
ds[num_user].type = "GAUGE"
ds[num_user].minimal_heartbeat = 120
ds[num_user].min = 0.0000000000e+00
ds[num_user].max = NaN
ds[num_user].last_ds = "UNKN"
ds[num_user].value = 1.8000000000e+01
ds[num_user].unknown_sec = 0
rra[0].cf = "MAX"
rra[0].rows = 1440
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[0].cdp_prep[1].value = NaN
rra[0].cdp_prep[1].unknown_datapoints = 0
rra[0].cdp_prep[2].value = NaN
rra[0].cdp_prep[2].unknown_datapoints = 0

Any idea?


Thanks,
Charles Li

--- Serge Maandag <serge.maandag at staff.zeelandnet.nl>
wrote:

> > I have an RRD that contains several metrics.  The
> > value of the metrics is very different in the
> range,
> > i.e., one range is between 1 and 200, and another
> is
> > between 5000 to 20000.  When I plot these 2
> metrics on
> > the same graph, only one line is readable.  How
> can I
> > plot it so that I can see both values, they do not
> > need to be on the same scales.  Once way I was
> > thinking of doing is to scale them to below 10,
> but I
> > need to get the MAX, which I do not know how to
> get...
> > Can anyone suggest better methods?
> 
> Not really,
> 
> you can divide the biggest one by ten and add a
> comment to
> the legend saying you did so. GPRINT the MAX value
> of the
> original value to the legend and use the scaled
> version
> for your LINE.
> 
> Something like:
> 
> DEF:small=/var/....
> DEF:big=/var/....
> CDEF:scaled=big,10,/
> LINE1:scaled....
> LINE1:small....
> GPRINT:big....
> 
> 
> You can also use a logarithmic y-axis.
> 
> Serge.
> 
> -------------
> Op de inhoud van dit e-mailbericht en de daaraan
> gehechte bijlagen is de inhoud van de volgende
> disclaimer van toepassing:
> http://www.zeelandnet.nl/disclaimer.php
> 



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250

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