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: [email protected]
[mailto:[email protected]] On Behalf Of William Pitcock
Sent: Tuesday, September 15, 2009 11:11 AM
To: [email protected]
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
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users