Changeset 1495
- Timestamp:
- 01/10/10 09:24:35 (3 years ago)
- Location:
- trunk/pdns/pdns/tools/rrd
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/tools/rrd/create
r940 r1495 7 7 DS:tcp-questions:COUNTER:600:0:100000 \ 8 8 DS:cache-entries:GAUGE:600:0:U \ 9 DS:packetcache-entries:GAUGE:600:0:U \ 9 10 DS:throttle-entries:GAUGE:600:0:U \ 10 11 DS:concurrent-queries:GAUGE:600:0:50000 \ … … 20 21 DS:cache-hits:COUNTER:600:0:100000 \ 21 22 DS:cache-misses:COUNTER:600:0:100000 \ 23 DS:packetcache-hits:COUNTER:600:0:100000 \ 24 DS:packetcache-misses:COUNTER:600:0:100000 \ 22 25 DS:answers0-1:COUNTER:600:0:100000 \ 23 26 DS:answers1-10:COUNTER:600:0:100000 \ … … 28 31 DS:user-msec:COUNTER:600:0:2000 \ 29 32 DS:uptime:GAUGE:600:0:U \ 33 DS:unexpected-packets:COUNTER:600:0:1000000 \ 30 34 DS:client-parse-errors:COUNTER:600:0:1000000 \ 31 35 DS:server-parse-errors:COUNTER:600:0:1000000 \ -
trunk/pdns/pdns/tools/rrd/makegraphs
r677 r1495 36 36 DEF:clientparseerrors=pdns_recursor.rrd:client-parse-errors:AVERAGE \ 37 37 DEF:serverparseerrors=pdns_recursor.rrd:server-parse-errors:AVERAGE \ 38 DEF:unexpected=pdns_recursor.rrd:unexpected-packets:AVERAGE \ 38 39 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" 40 42 41 43 rrdtool graph $GRAPHOPTS --start -$1 $WWWPREFIX/latencies-$2.png -w $WSIZE -h $HSIZE -l 0\ … … 43 45 -v "questions" \ 44 46 DEF:questions=pdns_recursor.rrd:questions:AVERAGE \ 47 DEF:answers00=pdns_recursor.rrd:packetcache-hits:AVERAGE \ 45 48 DEF:answers01=pdns_recursor.rrd:answers0-1:AVERAGE \ 46 49 DEF:answers110=pdns_recursor.rrd:answers1-10:AVERAGE \ … … 49 52 DEF:answersslow=pdns_recursor.rrd:answers-slow:AVERAGE \ 50 53 LINE1:questions#0000ff:"questions/s" \ 51 AREA:answers01#00ff00:"<1 ms" \ 54 AREA:answers00#00ff00:"<<1 ms" \ 55 STACK:answers01#00fff0:"<1 ms" \ 52 56 STACK:answers110#0000ff:"<10 ms" \ 53 STACK:answers10100# 00ffff:"<100 ms" \57 STACK:answers10100#ff9900:"<100 ms" \ 54 58 STACK:answers1001000#ffff00:"<1000 ms" \ 55 59 STACK:answersslow#ff0000:">1000 ms" … … 86 90 -v "entries" \ 87 91 DEF:cacheentries=pdns_recursor.rrd:cache-entries:AVERAGE \ 92 DEF:packetcacheentries=pdns_recursor.rrd:packetcache-entries:AVERAGE \ 88 93 DEF:negcacheentries=pdns_recursor.rrd:negcache-entries:AVERAGE \ 89 94 DEF:nsspeedsentries=pdns_recursor.rrd:nsspeeds-entries:AVERAGE \ 90 95 DEF:throttleentries=pdns_recursor.rrd:throttle-entries:AVERAGE \ 91 96 LINE1:cacheentries#ff0000:"cache entries" \ 97 LINE1:packetcacheentries#ffff00:"packet cache entries" \ 92 98 LINE1:negcacheentries#0000ff:"negative cache entries" \ 93 99 LINE1:nsspeedsentries#00ff00:"NS speeds entries" \ 94 LINE1:throttleentries#00ff 00:"throttle map entries"100 LINE1:throttleentries#00fff0:"throttle map entries" 95 101 96 102 … … 116 122 DEF:cachehits=pdns_recursor.rrd:cache-hits:AVERAGE \ 117 123 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 \ 118 126 DEF:usermsec=pdns_recursor.rrd:user-msec:AVERAGE \ 119 127 DEF:sysmsec=pdns_recursor.rrd:sys-msec:AVERAGE \ … … 121 129 DEF:msysmsec=pdns_recursor.rrd:sys-msec:MAX \ 122 130 CDEF:perc=cachehits,100,*,cachehits,cachemisses,+,/ \ 131 CDEF:packetperc=packetcachehits,100,*,packetcachehits,packetcachemisses,+,/ \ 123 132 CDEF:userperc=usermsec,10,/ \ 124 133 CDEF:sysperc=sysmsec,10,/ \ 125 134 CDEF:totmperc=musermsec,msysmsec,+,10,/ \ 126 135 LINE1:perc#0000ff:"percentage cache hits" \ 136 LINE1:packetperc#ff00ff:"percentage packetcache hits" \ 127 137 LINE1:totmperc#ffff00:"max cpu use" \ 128 138 AREA:userperc#ff0000:"user cpu percentage" \ … … 133 143 GPRINT:perc:LAST:"last %-3.1lf%%\t" \ 134 144 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%%" \ 135 150 COMMENT:"\l" \ 136 151 COMMENT:"System cpu " \ -
trunk/pdns/pdns/tools/rrd/update
r940 r1495 1 1 #!/bin/bash 2 #SOCKETDIR=/home/ahu/work/pdns/pdns/pdns/ 3 SOCKETDIR=/var/run/2 SOCKETDIR=/home/ahu/work/pdns/trunk/pdns/pdns/pdns-recursor-3.2-testing 3 #SOCKETDIR=/var/run/ 4 4 5 5 TSTAMP=$(date +%s) 6 6 7 VARIABLES="questions tcp-questions cache-entries concurrent-queries\7 VARIABLES="questions tcp-questions cache-entries packetcache-entries concurrent-queries\ 8 8 nxdomain-answers noerror-answers\ 9 9 servfail-answers tcp-outqueries\ 10 10 outgoing-timeouts nsspeeds-entries negcache-entries all-outqueries throttled-out\ 11 packetcache-hits packetcache-misses \ 11 12 cache-hits cache-misses answers0-1 answers1-10 answers10-100 answers100-1000 answers-slow\ 12 13 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" 14 15 15 16 UVARIABLES=$(echo $VARIABLES | tr '[a-z]' '[A-Z]' | tr - _ )