[rrd-users] Re: HRULE/Upper limit
DJ Gregor
dj at gregor.com
Mon May 5 00:05:25 MEST 2003
Hello again,
Right now, your Y-axis shows data in kilobytes, so "250 k", for
example. If you want this to show up as "250 M", you will need to use
a CDEF to multiply the values stored in your RRD by 1024. Add
",1024,*" onto the end of the appropriate CDEF's. You could also
divide by 1024 and use --vertical-label to mention that the data is in
megabytes.
- deej
On Sunday, May 4, 2003, at 03:02 PM, Ketan Patel wrote:
> Yes, "upper limit" was the mistake that I made. I changed upper limit
> to 654*1024 instead of 654, and voila, it gave me what I wanted. I
> haven't done any conversion from KB to MB as you suggested (no CDEF
> used) though.
>
> One thing still remains: On Y-axis it shows K. Which way can it be
> changed to M?
>
> For reference, here is the command that I used:
>
> rrdtool graph mem.gif -s $start -e $end \
> --upper-limit 680000 \
> --lower-limit 0 \
> --rigid \
> --base 1024 \
>
> DEF:mem_consumed=/databases/rv.rrd:consumed_mem:AVERAGE \
> DEF:mem_process=/databases/rv.rrd:process_mem:AVERAGE \
> CDEF:correct_mem_con=mem_consumed,0,669696,LIMIT \
> CDEF:correct_mem_proc=mem_process,0,669696,LIMIT \
> CDEF:max_available=mem_process,669696,+,mem_process,- \
> AREA:max_available=CCCCFF:"Memory Unused" \
> HRULE:669696#003399:"Maximum Available Memory" \
> AREA:correct_mem_con#0099FF:"Total memory consumed" \
> STACK:rv_mem#006699:"Memory consumed by process"
>
Daniel (DJ) Gregor, <dj at gregor.com> http://www.gregor.com/
--
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