Re: [rrd-users] Trending

This is a discussion on Re: [rrd-users] Trending within the RRD Users forums, part of the Networking and Network Related category; On Mon, Mar 10, 2008 at 04:03:57PM +0100, Felix Castillo Sanchez wrote: > > I'm trying to ...


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-10-2008
A Darren Dunham
 
Posts: n/a
Default Re: [rrd-users] Trending

On Mon, Mar 10, 2008 at 04:03:57PM +0100, Felix Castillo Sanchez wrote:
>
> I'm trying to reconstruct the nice graph showed in the "Gallery" showing
> filesystem utilization and predicted trends.
>
> Can somebody tell me how to draw the lines for the future?


You may find it easier to do much of the work outside of rrd. But I'm
drawing some similar lines. I haven't done all the work to make the
dates come out nice, though.

Something like:

[...]
"DEF:scratch=$rrd_file:scratch:AVERAGE",
# Calculate slope
"VDEF:slope=scratch,LSLSLOPE",
"VDEF:int=scratch,LSLINT",
# Graph trend line
"CDEF:trend=scratch,POP,slope,COUNT,*,int,+",
"LINE:trend#00FF00",
# Find regions where trend is less than 0
"CDEF:sub=trend,NEGINF,1,LIMIT",
"VDEF:first_sub=sub,FIRST",
"GPRINT:first_sub:Predicted empty %F:strftime",
# Vertical line at that point
"VRULE:first_sub#FF0000:exhaustion point",
[...]

Note that in my case I'm looking for when the graph hits zero, not when
it hits 100.

You'll probably want to lock down the vertical graph limits to keep the
line from extending them too far.

--
Darren Dunham ddunham@taos.com
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >

_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:48 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0