[rrd-developers] Re: Historical comparison graphs (feature for 1.1.x?)

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Wed Mar 7 10:59:08 MET 2001


Terminator rAT wrote:

> There doesn't appear to be any facility in RRDtool for graphing differing
> time periods, so I propose the following additional data "type":
> 
> 	ODEF (Offset DEFinition)
> 		ODEF:var=rrdfile:ds:CF:offset_time

This would be possible but please consider the more generic
approach:

DEF:week1=rrdfile:ds:CF:time-range:steptime
DEF:week2=rrdfile:ds:CF:time-range:steptime
DEF:week3=rrdfile:ds:CF:time-range:steptime
[... etcetera ...]
LINE1:week3#FF0000:"Current week\n"
SHIFT:604800     <--------------- this shifts the graphing, not the data
LINE1:week2#00FF00:"Last week\n"
SHIFT:1209600
LINE1:week1#0000FF:"Week before\n"

This approach would also allow for:

DEF:januari=rrdfile:ds:CF:time-range:steptime
DEF:februari=rrdfile:ds:CF:time-range:steptime
DEF:march=rrdfile:ds:CF:time-range:steptime
PRINT:januari:AVERAGE:"Januari average: %6.2lf\n"
PRINT:februari:AVERAGE:"Februari average: %6.2lf\n"
PRINT:march:AVERAGE:"March average: %6.2lf\n"

and, last but not least:

DEF:januari=rrdfile:ds:CF:time-range:steptime
DEF:februari=rrdfile:ds:CF:time-range:steptime
DEF:march=rrdfile:ds:CF:time-range:steptime
VDEF:percjan=95,januari,PERCENT
VDEF:percfeb=95,januari,PERCENT
VDEF:percmar=95,januari,PERCENT
LINE1:januari#0000FF:"Januari data in\n"
LINE1:februari#00FF00:"Februari data in\n"
LINE1:march#0000FF:"March data in\n"
LINE1:percjan#FF0000:"95th percentile for januari\n"
LINE1:percfeb#FFFF00:"95th percentile for februari\n"
LINE1:percmar#FF0000:"95th percentile for march\n"
(possibly combined with SHIFTs to overlay last year)

cheers,
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. | 
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-developers
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-developers mailing list