[MASOCH-L] 95 percentil

Marcus Grando marcus at sbh.eng.br
Mon Jun 27 22:06:52 -03 2005


Então,

Depois de apanhar um pouco... aqui está:

rrdtool graph teste.png -s now-1m -e now -w 500 \
         DEF:in=teste.rrd:ds0:AVERAGE \
         DEF:out=teste.rrd:ds1:AVERAGE \
         CDEF:max=in,out,MAX,8,* \
         CDEF:sum=in,out,+,8,* \
         VDEF:total=sum,TOTAL \
         VDEF:perc=max,95,PERCENT \
         VDEF:maxvalue=max,MAXIMUM \
         VDEF:minvalue=max,MINIMUM \
         VDEF:avgvalue=max,AVERAGE \
         LINE1:max#00FF00:"Valor máximo de entrada ou de saída\n" \
         AREA:max#00FF00 \
         COMMENT:"Valor Máximo\:" \
         GPRINT:maxvalue:"%1.2lf %Sbps\n" \
         COMMENT:"Valor Mínimo\:" \
         GPRINT:minvalue:"%1.2lf %Sbps\n" \
         COMMENT:"\n" \
         LINE1:avgvalue#FF0000:"Média geral\n" \
         COMMENT:"Valor\:" \
         GPRINT:avgvalue:"%1.2lf %Sbps\n" \
         COMMENT:"\n" \
         LINE2:perc#0000FF:"95 percentil\n" \
         COMMENT:"Valor\:" \
         GPRINT:perc:"%1.2lf %Sbps\n"\
         COMMENT:"\n" \
         COMMENT:"Total tranferido (in+out)\:" \
         GPRINT:total:"%1.2lf %Sbps\n"

Marcus Grando wrote:
> Pessoal,
> 
> Alguem que tenha conhecimento do método 95 percentil, saberia me 
> informar se está correto essa criação de gráfico com o rrdtool?
> 
> rrdtool graph teste.png -s now-30d -e now -w 500 \
>          DEF:in=teste.rrd:ds0:MAX \
>          DEF:out=teste.rrd:ds1:MAX \
>          CDEF:max=in,out,MAX \
>          CDEF:sum=in,out,+ \
>          VDEF:total=sum,TOTAL \
>          VDEF:perc=max,95,PERCENT \
>          VDEF:maxvalue=max,MAXIMUM \
>          VDEF:minvalue=max,MINIMUM \
>          VDEF:avgvalue=max,AVERAGE \
>          LINE1:max#00FF00:"Valor máximo de entrada ou de saída\n" \
>          AREA:max#00FF00 \
>          COMMENT:"Valor Máximo\:" GPRINT:maxvalue:"%1.2lf %Sbps\n" \
>          COMMENT:"Valor Mínimo\:" GPRINT:minvalue:"%1.2lf %Sbps\n" \
>          COMMENT:"\n" \
>          LINE1:avgvalue#FF0000:"Média geral\n" \
>          COMMENT:"Valor\:" GPRINT:avgvalue:"%1.2lf %Sbps\n" \
>          COMMENT:"\n" \
>          LINE2:perc#0000FF:"95 percentil\n" \
>          COMMENT:"Valor\:" GPRINT:perc:"%1.2lf %Sbps\n"\
>          COMMENT:"\n" \
>          COMMENT:"Total tranferido (in+out)\:" GPRINT:total:"%1.2lf %Sbps\n"
> 
> Abraços
> 

-- 
Marcus Grando
marcus(at)sbh.eng.br



More information about the masoch-l mailing list