[rrd-users] Trending

A Darren Dunham ddunham at taos.com
Mon Mar 10 23:08:20 CET 2008

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:

# Calculate slope
# Graph trend line
# Find regions where trend is less than 0
             "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 at 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. >

More information about the rrd-users mailing list