Changeset 1495

Show
Ignore:
Timestamp:
01/10/10 09:24:35 (4 years ago)
Author:
ahu
Message:

add packetcache statistics, plus 'unexpected' counts, plus fix up some confusing colors

Location:
trunk/pdns/pdns/tools/rrd
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/tools/rrd/create

    r940 r1495  
    77DS:tcp-questions:COUNTER:600:0:100000 \ 
    88DS:cache-entries:GAUGE:600:0:U \ 
     9DS:packetcache-entries:GAUGE:600:0:U \ 
    910DS:throttle-entries:GAUGE:600:0:U \ 
    1011DS:concurrent-queries:GAUGE:600:0:50000 \ 
     
    2021DS:cache-hits:COUNTER:600:0:100000 \ 
    2122DS:cache-misses:COUNTER:600:0:100000 \ 
     23DS:packetcache-hits:COUNTER:600:0:100000 \ 
     24DS:packetcache-misses:COUNTER:600:0:100000 \ 
    2225DS:answers0-1:COUNTER:600:0:100000 \ 
    2326DS:answers1-10:COUNTER:600:0:100000 \ 
     
    2831DS:user-msec:COUNTER:600:0:2000 \ 
    2932DS:uptime:GAUGE:600:0:U \ 
     33DS:unexpected-packets:COUNTER:600:0:1000000 \ 
    3034DS:client-parse-errors:COUNTER:600:0:1000000 \ 
    3135DS:server-parse-errors:COUNTER:600:0:1000000 \ 
  • trunk/pdns/pdns/tools/rrd/makegraphs

    r677 r1495  
    3636        DEF:clientparseerrors=pdns_recursor.rrd:client-parse-errors:AVERAGE  \ 
    3737        DEF:serverparseerrors=pdns_recursor.rrd:server-parse-errors:AVERAGE  \ 
     38        DEF:unexpected=pdns_recursor.rrd:unexpected-packets:AVERAGE  \ 
    3839        LINE1:clientparseerrors#0000ff:"bad packets from clients" \ 
    39         LINE1:serverparseerrors#00ff00:"bad packets from servers"  
     40        LINE1:serverparseerrors#00ff00:"bad packets from servers" \ 
     41        LINE1:unexpected#ff0000:"unexpected packets from servers"          
    4042 
    4143  rrdtool graph $GRAPHOPTS --start -$1 $WWWPREFIX/latencies-$2.png -w $WSIZE -h $HSIZE -l 0\ 
     
    4345        -v "questions" \ 
    4446        DEF:questions=pdns_recursor.rrd:questions:AVERAGE  \ 
     47        DEF:answers00=pdns_recursor.rrd:packetcache-hits:AVERAGE \ 
    4548        DEF:answers01=pdns_recursor.rrd:answers0-1:AVERAGE \ 
    4649        DEF:answers110=pdns_recursor.rrd:answers1-10:AVERAGE \ 
     
    4952        DEF:answersslow=pdns_recursor.rrd:answers-slow:AVERAGE \ 
    5053        LINE1:questions#0000ff:"questions/s" \ 
    51         AREA:answers01#00ff00:"<1 ms" \ 
     54        AREA:answers00#00ff00:"<<1 ms" \ 
     55        STACK:answers01#00fff0:"<1 ms" \ 
    5256        STACK:answers110#0000ff:"<10 ms" \ 
    53         STACK:answers10100#00ffff:"<100 ms" \ 
     57        STACK:answers10100#ff9900:"<100 ms" \ 
    5458        STACK:answers1001000#ffff00:"<1000 ms" \ 
    5559        STACK:answersslow#ff0000:">1000 ms"        
     
    8690        -v "entries" \ 
    8791        DEF:cacheentries=pdns_recursor.rrd:cache-entries:AVERAGE  \ 
     92        DEF:packetcacheentries=pdns_recursor.rrd:packetcache-entries:AVERAGE  \ 
    8893        DEF:negcacheentries=pdns_recursor.rrd:negcache-entries:AVERAGE  \ 
    8994        DEF:nsspeedsentries=pdns_recursor.rrd:nsspeeds-entries:AVERAGE  \ 
    9095        DEF:throttleentries=pdns_recursor.rrd:throttle-entries:AVERAGE  \ 
    9196        LINE1:cacheentries#ff0000:"cache entries" \ 
     97        LINE1:packetcacheentries#ffff00:"packet cache entries" \ 
    9298        LINE1:negcacheentries#0000ff:"negative cache entries" \ 
    9399        LINE1:nsspeedsentries#00ff00:"NS speeds entries" \ 
    94         LINE1:throttleentries#00ff00:"throttle map entries"  
     100        LINE1:throttleentries#00fff0:"throttle map entries"  
    95101         
    96102 
     
    116122        DEF:cachehits=pdns_recursor.rrd:cache-hits:AVERAGE  \ 
    117123        DEF:cachemisses=pdns_recursor.rrd:cache-misses:AVERAGE  \ 
     124        DEF:packetcachehits=pdns_recursor.rrd:packetcache-hits:AVERAGE  \ 
     125        DEF:packetcachemisses=pdns_recursor.rrd:packetcache-misses:AVERAGE  \ 
    118126        DEF:usermsec=pdns_recursor.rrd:user-msec:AVERAGE \ 
    119127        DEF:sysmsec=pdns_recursor.rrd:sys-msec:AVERAGE \ 
     
    121129        DEF:msysmsec=pdns_recursor.rrd:sys-msec:MAX \ 
    122130        CDEF:perc=cachehits,100,*,cachehits,cachemisses,+,/ \ 
     131        CDEF:packetperc=packetcachehits,100,*,packetcachehits,packetcachemisses,+,/ \ 
    123132        CDEF:userperc=usermsec,10,/ \ 
    124133        CDEF:sysperc=sysmsec,10,/ \ 
    125134        CDEF:totmperc=musermsec,msysmsec,+,10,/ \ 
    126135        LINE1:perc#0000ff:"percentage cache hits"  \ 
     136        LINE1:packetperc#ff00ff:"percentage packetcache hits"  \ 
    127137        LINE1:totmperc#ffff00:"max cpu use" \ 
    128138        AREA:userperc#ff0000:"user cpu percentage" \ 
     
    133143        GPRINT:perc:LAST:"last %-3.1lf%%\t" \ 
    134144        GPRINT:perc:MAX:"max %-3.1lf%%" \ 
     145        COMMENT:"\l" \ 
     146        COMMENT:"Pkt hits   " \ 
     147        GPRINT:packetperc:AVERAGE:"avg %-3.1lf%%\t" \ 
     148        GPRINT:packetperc:LAST:"last %-3.1lf%%\t" \ 
     149        GPRINT:packetperc:MAX:"max %-3.1lf%%" \ 
    135150        COMMENT:"\l" \ 
    136151        COMMENT:"System cpu " \ 
  • trunk/pdns/pdns/tools/rrd/update

    r940 r1495  
    11#!/bin/bash 
    2 #SOCKETDIR=/home/ahu/work/pdns/pdns/pdns/     
    3 SOCKETDIR=/var/run/ 
     2SOCKETDIR=/home/ahu/work/pdns/trunk/pdns/pdns/pdns-recursor-3.2-testing 
     3#SOCKETDIR=/var/run/ 
    44 
    55TSTAMP=$(date +%s) 
    66 
    7 VARIABLES="questions tcp-questions cache-entries concurrent-queries\ 
     7VARIABLES="questions tcp-questions cache-entries packetcache-entries concurrent-queries\ 
    88           nxdomain-answers noerror-answers\ 
    99           servfail-answers tcp-outqueries\ 
    1010           outgoing-timeouts nsspeeds-entries negcache-entries all-outqueries throttled-out\ 
     11           packetcache-hits packetcache-misses  \ 
    1112           cache-hits cache-misses answers0-1 answers1-10 answers10-100 answers100-1000 answers-slow\ 
    1213        qa-latency throttle-entries sys-msec user-msec unauthorized-udp unauthorized-tcp client-parse-errors\ 
    13         server-parse-errors uptime" 
     14        server-parse-errors uptime unexpected-packets" 
    1415 
    1516UVARIABLES=$(echo $VARIABLES | tr '[a-z]' '[A-Z]' | tr - _ )