Changeset 1503
- Timestamp:
- 01/20/10 22:24:16 (3 years ago)
- Location:
- trunk/pdns/pdns/tools/rrd
- Files:
-
- 4 modified
-
create (modified) (1 diff)
-
index.html (modified) (1 diff)
-
makegraphs (modified) (4 diffs)
-
update (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/tools/rrd/create
r1495 r1503 28 28 DS:answers100-1000:COUNTER:600:0:100000 \ 29 29 DS:answers-slow:COUNTER:600:0:100000 \ 30 DS:udp-overruns:COUNTER:600:0:100000 \ 30 31 DS:qa-latency:GAUGE:600:0:10000000 \ 31 32 DS:user-msec:COUNTER:600:0:2000 \ -
trunk/pdns/pdns/tools/rrd/index.html
r676 r1503 51 51 <img src="hitrate-day.png"> 52 52 <br> 53 <img src="cpuload-day.png"> 54 <br> 53 55 <img src="packet-errors-day.png"> 54 56 -
trunk/pdns/pdns/tools/rrd/makegraphs
r1495 r1503 32 32 33 33 rrdtool graph $GRAPHOPTS --start -$1 $WWWPREFIX/packet-errors-$2.png -w $WSIZE -h $HSIZE -l 0\ 34 -t "Pa rsingerrors per second" \34 -t "Packet errors per second" \ 35 35 -v "packets" \ 36 36 DEF:clientparseerrors=pdns_recursor.rrd:client-parse-errors:AVERAGE \ 37 37 DEF:serverparseerrors=pdns_recursor.rrd:server-parse-errors:AVERAGE \ 38 38 DEF:unexpected=pdns_recursor.rrd:unexpected-packets:AVERAGE \ 39 DEF:udpoverruns=pdns_recursor.rrd:udp-overruns:AVERAGE \ 39 40 LINE1:clientparseerrors#0000ff:"bad packets from clients" \ 40 41 LINE1:serverparseerrors#00ff00:"bad packets from servers" \ 41 LINE1:unexpected#ff0000:"unexpected packets from servers" 42 LINE1:unexpected#ff0000:"unexpected packets from servers" \ 43 LINE1:udpoverruns#ff00ff:"udp overruns from remotes" 42 44 43 45 rrdtool graph $GRAPHOPTS --start -$1 $WWWPREFIX/latencies-$2.png -w $WSIZE -h $HSIZE -l 0\ … … 119 121 rrdtool graph $GRAPHOPTS --start -$1 $WWWPREFIX/hitrate-$2.png -w $WSIZE -h $HSIZE -l 0\ 120 122 -v "percentage" \ 121 -t "cache hits , cpu load" \123 -t "cache hits" \ 122 124 DEF:cachehits=pdns_recursor.rrd:cache-hits:AVERAGE \ 123 125 DEF:cachemisses=pdns_recursor.rrd:cache-misses:AVERAGE \ 124 126 DEF:packetcachehits=pdns_recursor.rrd:packetcache-hits:AVERAGE \ 125 127 DEF:packetcachemisses=pdns_recursor.rrd:packetcache-misses:AVERAGE \ 126 DEF:usermsec=pdns_recursor.rrd:user-msec:AVERAGE \127 DEF:sysmsec=pdns_recursor.rrd:sys-msec:AVERAGE \128 DEF:musermsec=pdns_recursor.rrd:user-msec:MAX \129 DEF:msysmsec=pdns_recursor.rrd:sys-msec:MAX \130 128 CDEF:perc=cachehits,100,*,cachehits,cachemisses,+,/ \ 131 129 CDEF:packetperc=packetcachehits,100,*,packetcachehits,packetcachemisses,+,/ \ 132 CDEF:userperc=usermsec,10,/ \133 CDEF:sysperc=sysmsec,10,/ \134 CDEF:totmperc=musermsec,msysmsec,+,10,/ \135 130 LINE1:perc#0000ff:"percentage cache hits" \ 136 131 LINE1:packetperc#ff00ff:"percentage packetcache hits" \ 137 LINE1:totmperc#ffff00:"max cpu use" \138 AREA:userperc#ff0000:"user cpu percentage" \139 STACK:sysperc#00ff00:"system cpu percentage" \140 132 COMMENT:"\l" \ 141 133 COMMENT:"Cache hits " \ … … 148 140 GPRINT:packetperc:LAST:"last %-3.1lf%%\t" \ 149 141 GPRINT:packetperc:MAX:"max %-3.1lf%%" \ 142 COMMENT:"\l" 143 144 rrdtool graph $GRAPHOPTS --start -$1 $WWWPREFIX/cpuload-$2.png -w $WSIZE -h $HSIZE -l 0\ 145 -v "percentage" \ 146 -t "cpu load" \ 147 DEF:usermsec=pdns_recursor.rrd:user-msec:AVERAGE \ 148 DEF:sysmsec=pdns_recursor.rrd:sys-msec:AVERAGE \ 149 DEF:musermsec=pdns_recursor.rrd:user-msec:MAX \ 150 DEF:msysmsec=pdns_recursor.rrd:sys-msec:MAX \ 151 CDEF:userperc=usermsec,10,/ \ 152 CDEF:sysperc=sysmsec,10,/ \ 153 CDEF:totmperc=musermsec,msysmsec,+,10,/ \ 154 LINE1:totmperc#ffff00:"max cpu use" \ 155 AREA:userperc#ff0000:"user cpu percentage" \ 156 STACK:sysperc#00ff00:"system cpu percentage" \ 150 157 COMMENT:"\l" \ 151 158 COMMENT:"System cpu " \ … … 157 164 GPRINT:userperc:AVERAGE:"avg %-3.1lf%%\t" \ 158 165 GPRINT:userperc:LAST:"last %-3.1lf%%\t" \ 159 GPRINT:userperc:MAX:"max %-3.1lf%%" 166 GPRINT:userperc:MAX:"max %-3.1lf%%" \ 167 COMMENT:"\l" 168 160 169 161 170 } -
trunk/pdns/pdns/tools/rrd/update
r1495 r1503 22 22 read $a 23 23 done 24 rrdtool update pdns_recursor.rrd \ 25 -t \ 26 $(for a in $VARIABLES 24 rrdtool update pdns_recursor.rrd \ 25 -t "udp-overruns:"$(for a in $VARIABLES 27 26 do 28 27 echo -n $a: 29 28 done | sed 's/:$//' ) \ 30 29 $TSTAMP$( 30 echo -n : 31 netstat -s | grep "packet receive error" | awk '{printf $1}' 31 32 for a in $UVARIABLES 32 33 do 33 34 echo -n :${!a} 34 done) 35 done 36 ) 35 37 )