[rrd-developers] Re: Implementing TOTAL

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Wed Jul 25 23:58:48 MEST 2001


Mark Mills wrote:

> > What would be the prefered way to handle unknown intervals?  There
> > are two options as far as I can see:
> > 
> > 1) average(all rates)*timespan(graph)
> > 2) sum(for each defined interval:(rate*stepsize))
> > The difference would be the unknown intervals.  In the first case
> > unknown intervals are assumed to be at the average rate, in the
> > second case unknown intervals are assumed to be zero.
> 
> Do both? TOTALSUM, TOTALAVG are really ugly suggestions for names. =)

They're not clear to me and this is within context :)

> Or alternately make TOTAL a raw sum and supply a COUNT and STEPS so we
> can calculate it manually?

We could have "preset" VDEFs such as timespan (number of seconds graphed).
This could then be multiplied by the calculated average and thus provide
the total as calculated using option 1 above.
    VDEF:total=ds,AVERAGE,timespan,*
This requires being able to use real RPN in VDEF commands, something
that needs to be done anyway but it is currently not implemented.

Option 2 could be implemented by doing
   VDEF:total=ds,TOTAL

Apart from calculating the total, is there any other need to know how
many intervals were unknown or not?

Thanks for the input, I really appreciate it.
-- 
   __________________________________________________________________
 / 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