[rrd-users] 95th Percentile calculation

David OBrien David.OBrien at peak10.com
Tue Sep 15 17:32:49 CEST 2009


That's how I do it

   VDEF:totin=a,TOTAL  VDEF:totout=b,TOTAL  
    CDEF:tottraf=a,b,+  CDEF:zero=0,b,* 
    VDEF:per90=tottraf,90,PERCENT 
    VDEF:per95=tottraf,95,PERCENT 

-----Original Message-----
From: rrd-users-bounces at lists.oetiker.ch [mailto:rrd-users-bounces at lists.oetiker.ch] On Behalf Of William Pitcock
Sent: Tuesday, September 15, 2009 11:11 AM
To: rrd-users at lists.oetiker.ch
Subject: [rrd-users] 95th Percentile calculation

Hi,

I am entirely stumped on how to calculate and graph 95th percentile
usage using the VDEF function in rrdtool 1.2 or greater.

My configuration is like this:

DEF:inoctets=rrdfile.rrd:inoctets:LAST
DEF:outoctets=rrdfile.rrd:outoctets:LAST
CDEF:inbits=inoctets,8,*
CDEF:outbits=outoctets,8,*
CDEF:allbits=inbits,outbits,+
VDEF:95th=allbits,95,PERCENT
AREA:inbits#00FF00:In
LINE:outbits#OOOOFF:Out
HRULE:95th#FF0000:95th
GPRINT:95th:"%6.2lf %Sbps"

Unfortunately Cacti, for example, precalculates this value and plots
it. :(

William

_______________________________________________
rrd-users mailing list
rrd-users at lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users



More information about the rrd-users mailing list