[rrd-developers] Re: Hourly stats (was: newbie CF query)

Tobias Oetiker oetiker at ee.ethz.ch
Tue Jul 20 20:19:16 MEST 1999


Today you sent me mail regarding Hourly stats (was: newbie CF query):

*> > *> Am I right in assuming that this would allow me to create a graph with
*> > *> hourly averages, being more than 1 pixel wide ? I mean, have one day
*> > *> visible and this is displayed as 24 bars ?
*> > 
*> > yes I guess so :-) ... given the data available allows for this resolution
*> > to be built by combining several high resolution samples or by using the
*> > apropriate rra ... 
*> > 
*> What I'm asked to do (don't ask me *why*) is to provide statistics
*> per block of hours.
*> Right now I used rrdtool graph to create an one-day-image, followed by
*> a textual representation: 12 periods of two hours like this:
*> (this is actual output from lynx http://myserver/rrd/,
*> our opening hours are 13:30 - 03:00 so they're in the middle)
*> 
*>        <the png is here, spanning the same amount of space>
*> 
*>            kilobits per second  IN       kilobits per second OUT
*>           maximum  minimum  average     maximum  minimum  average
*>    08:00    83.44     1.42     6.01      252.35     1.62    12.04
*>    10:00    85.51     1.40    10.40      246.39     1.57    13.09
*>    12:00   116.25     2.36    23.87      250.10     1.67    22.37
*>    14:00   124.33     5.82    50.70      135.82     4.03    37.80
*>    16:00    68.09     6.27    20.11      131.63     5.15    21.05
*>    18:00    95.78     4.18    23.32      126.84     5.03    24.79
*>    20:00    52.87    13.27    24.94      164.27    10.62    25.52
*>    22:00    72.47    13.38    26.35      254.16    11.28    36.11
*>    00:00    51.48    12.63    22.86       81.38     9.82    20.21
*>    02:00   137.57     1.26    18.34      113.00     1.54    10.78
*>    04:00    22.37     0.91     3.25       20.23     1.08     2.93
*>    06:00    79.83     1.09     5.41      255.69     1.27     7.11

I see yep ... well yes for this specifying the resolution would be neat
indeed ... hmmm I guess it could be done by makeing a

DEF:vname=rrd:ds-name:CF[:seconds]

extension ... most of the internal support for this is already in place ...
the only thing which would need some thinking would be to make sure that
it is possible to include the same rrd:ds-name:CF combination at different
resolutions ... 

*> It would be nice to display 12 bars with maxima, overlayed with
*> 12 bars of averages. It would even be better to be able to have
*> two smaller bars next to each other, one for in and one for out.
*> (This will be rrdtool-2.0.0 if not 3.0.0, right :)

well this should not be to difficult using CDEF and TIME and some modulo
operator to make data go unknown and then known again ... simple stuff :-)
...

cheers
tobi

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker, Timelord & SysMgr @ EE-Dept ETH-Zurich
 / // _ \/ _ \/ / TEL: +41(0)1-6325286  FAX:...1517  ICQ: 10419518 
/_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://ee-staff.ethz.ch/~oetiker

--
* To unsubscribe from the rrd-developers mailing list, send a message with the
  subject: unsubscribe to rrd-developers-request at list.ee.ethz.ch



More information about the rrd-developers mailing list