[rrd-users] Re: 95th percentile

Mike Bernhardt mbernhardt at arsin.com
Wed Mar 14 19:44:21 MET 2001


So it sounds like your script generates text output then? That would still
be useful. I do remember seeing a post here that included a link to
someone's graph, which included 95th percentile info including approximate
cost of the usage. Does anyone else remember it? I can't find it in the
archives.

-----Original Message-----
From: Paul Wickman [mailto:paulw at explosive.net]
Sent: Wednesday, March 14, 2001 10:29 AM
To: Mike Bernhardt
Cc: rrd-users at list.ee.ethz.ch
Subject: Re: [rrd-users] Re: 95th percentile



Sure, I'll post the code, as soon as I find it :^) ...  As far as
14all.cgi, or generating graphs, I don't.  The graph function in RRD will
only let you graph (consolidated) data already in an RRA.  So, you can
only graph the MIN, MAX, AVG, and LAST.  You cannot fetch data, muck with
it, and then give it back to RRD to be graphed.  You'll have to generate
your own graph with GDChart, or some such similar module.  The 95th
percentile data that I generate is used by the accounting folks to
generate billing invoices.

 On Wed, 14 Mar 2001, Mike Bernhardt wrote:

> 
> If you'd post the code, I'd appreciate it. I'm fairly new to perl and even
> newer to rrdtool, so I can use all the tutelage I can get. Do you
> incorporate it with 14all or something, or does your script build the
graphs
> too? Sorry if that's a stupid question...
> 
> -----Original Message-----
> From: Paul Wickman [mailto:paulw at explosive.net]
> Sent: Wednesday, March 14, 2001 10:01 AM
> To: Mike Bernhardt
> Cc: rrd-users at list.ee.ethz.ch
> Subject: [rrd-users] Re: 95th percentile
> 
> 
> 
> 
> Yes, sortof.  I compute 95th percentile for customer bandwidth.  Accuracy
> will depend on the number of sample interval and number of samples.  I
> don't use the default mrtg-like definitions.
> 
> If you use the Statistics::Descriptive perl module, it's pretty simple.  I
> do a fetch of the interval I wan't to compute over (in my case, it's 5
> minute samples for the last 30 days).  I can post the actual code if you
> like, but essentially:
> 
> $stat = Statistics::Descriptive::Full->new();
> ($start,$step,$ds,$data) = RRDs::fetch .....;
> foreach (@$data) {
> 	#
> 	# Substitute zero for missing samples
> 	if ($_->[0] eq "" || $_->[1] eq "") {
>             $sam = 0;
>             $drop++;
>         } else {
>             $sam = ($_->[0] * 8) + ($_->[1] * 8);
>         }
> 	$stat->add_data($sam);
> }
> $perc = $stat->percentile(95);	
> 
> 
> 
> On Wed, 14 Mar 2001, Mike Bernhardt wrote:
> 
> > 
> > This question has been asked several times before, but I haven't seen
any
> > answers- has anyone come up with a script to generate 95th percentile?
And
> > if so, would they be willing to share it?
> > 
> > Mike Bernhardt, CCIE #6079
> > Networks & Systems Engineering
> > Arsin Corporation
> > Email: mbernhardt at arsin.com
> > Phone: (415) 294-3006
> > 
> > 
> > --
> > Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
> > Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
> > Archive     http://www.ee.ethz.ch/~slist/rrd-users
> > WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi
> > 
> 
> ---
> 	We listen, and if it feels good, we shake...
> 	
> 					- Pilgrims, by Widespread Panic
> 
> 
> --
> Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
> Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
> Archive     http://www.ee.ethz.ch/~slist/rrd-users
> WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi
> 
> --
> Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
> Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
> Archive     http://www.ee.ethz.ch/~slist/rrd-users
> WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi
> 

---
	We listen, and if it feels good, we shake...
	
					- Pilgrims, by Widespread Panic

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



More information about the rrd-users mailing list