How do i go about setting the min and max values for the y axis?? ________________________________
From: [EMAIL PROTECTED] on behalf of Charles Li Sent: Wed 2/23/2005 8:28 AM To: Serge Maandag; [email protected] Subject: [rrd-users] Re: problem with displaying metrics of different ranges 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: [EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
