From 9672e06fe719be0c9769b37a02d06f259a3e9060 Mon Sep 17 00:00:00 2001 From: Bert Hubert Date: Tue, 11 Apr 2006 15:01:11 +0000 Subject: [PATCH] add unauthorized-udp, unauthorized-tcp, client-parse-errors, server-parse-errors to graphs, improve graph explanation a bit git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@676 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- pdns/tools/rrd/create | 4 ++++ pdns/tools/rrd/index.html | 39 ++++++++++++++++++++++----------------- pdns/tools/rrd/makegraphs | 24 ++++++++++++++++++------ pdns/tools/rrd/update | 3 ++- 4 files changed, 46 insertions(+), 24 deletions(-) diff --git a/pdns/tools/rrd/create b/pdns/tools/rrd/create index 4af7bac8a..84033ab28 100755 --- a/pdns/tools/rrd/create +++ b/pdns/tools/rrd/create @@ -26,6 +26,10 @@ DS:answers100-1000:COUNTER:600:0:100000 \ DS:answers-slow:COUNTER:600:0:100000 \ DS:qa-latency:GAUGE:600:0:10000000 \ DS:user-msec:COUNTER:600:0:2000 \ +DS:client-parse-errors:COUNTER:600:0:1000000 \ +DS:server-parse-errors:COUNTER:600:0:1000000 \ +DS:unauthorized-udp:COUNTER:600:0:1000000 \ +DS:unauthorized-tcp:COUNTER:600:0:1000000 \ DS:sys-msec:COUNTER:600:0:2000 \ RRA:AVERAGE:0.5:1:9600 \ RRA:AVERAGE:0.5:4:9600 \ diff --git a/pdns/tools/rrd/index.html b/pdns/tools/rrd/index.html index 0cd518508..d85cf92ff 100644 --- a/pdns/tools/rrd/index.html +++ b/pdns/tools/rrd/index.html @@ -1,11 +1,11 @@

PowerDNS Recursor Performance Graphs

@@ -13,8 +13,9 @@ @@ -26,26 +27,30 @@ indication that there is no answer carrying the answer did not respond, or were throttled +
Out-queriesRecursor initiated questions to other nameservers
ThrottledIf a certain nameserver is not responding, or if -it is, but returning unuseful answers, the query can -get prevented from happening and causing delay. This is called a 'throttled +it is, but returning unuseful answers, it is not useful to keep repeating +identical queries. If PowerDNS prevents a duplicate query, and therefore +prevents needless server load and delays, this is called a 'throttled out-query'
Outgoing timeoutAn out-query that did not generate an answer within 1 or 2 seconds
Cache hits/missesA query is judged a cache-hit if it could be answered without generating any out-queries
User/System CPU usageActual amount of CPU used exclusively +by the recursor, either in user or in system (kernel) mode
- +
- +
- +
- +
- +
- +
- +
- +
- +
- + +
+ diff --git a/pdns/tools/rrd/makegraphs b/pdns/tools/rrd/makegraphs index 59fa4477f..5ead65aa5 100755 --- a/pdns/tools/rrd/makegraphs +++ b/pdns/tools/rrd/makegraphs @@ -6,7 +6,7 @@ HSIZE=250 function makeGraphs() { rrdtool graph --start -$1 $WWWPREFIX/questions-$2.png -w $WSIZE -h $HSIZE -l 0\ - -t "Question and answer counts per second" \ + -t "Questions and answers per second" \ -v "packets" \ DEF:questions=pdns_recursor.rrd:questions:AVERAGE \ DEF:nxdomainanswers=pdns_recursor.rrd:nxdomain-answers:AVERAGE \ @@ -18,10 +18,22 @@ function makeGraphs() STACK:servfailanswers#ff0000:"servfail answers/s" rrdtool graph --start -$1 $WWWPREFIX/tcp-questions-$2.png -w $WSIZE -h $HSIZE -l 0\ - -t "TCP question and answer counts per second" \ + -t "TCP questions and answers per second, unauthorized packets/s" \ -v "packets" \ DEF:tcpquestions=pdns_recursor.rrd:tcp-questions:AVERAGE \ - LINE2:tcpquestions#0000ff:"questions/s"\ + DEF:unauthudp=pdns_recursor.rrd:unauthorized-udp:AVERAGE \ + DEF:unauthtcp=pdns_recursor.rrd:unauthorized-tcp:AVERAGE \ + LINE2:tcpquestions#0000ff:"tcp questions/s" \ + LINE2:unauthudp#ff0000:"udp unauth/s" \ + LINE2:unauthtcp#00ff00:"tcp unauth/s" + + rrdtool graph --start -$1 $WWWPREFIX/packet-errors-$2.png -w $WSIZE -h $HSIZE -l 0\ + -t "Parsing errors per second" \ + -v "packets" \ + DEF:clientparseerrors=pdns_recursor.rrd:client-parse-errors:AVERAGE \ + DEF:serverparseerrors=pdns_recursor.rrd:server-parse-errors:AVERAGE \ + LINE2:clientparseerrors#0000ff:"bad packets from clients" \ + LINE2:serverparseerrors#00ff00:"bad packets from servers" rrdtool graph --start -$1 $WWWPREFIX/latencies-$2.png -w $WSIZE -h $HSIZE -l 0\ -t "Questions answered within latency" \ @@ -40,7 +52,7 @@ function makeGraphs() STACK:answersslow#ff0000:">1000 ms" rrdtool graph --start -$1 $WWWPREFIX/qoutq-$2.png -w $WSIZE -h $HSIZE -l 0 \ - -t "Questions/outqueries counts per second" \ + -t "Questions/outqueries per second" \ -v "packets" \ DEF:questions=pdns_recursor.rrd:questions:AVERAGE \ DEF:alloutqueries=pdns_recursor.rrd:all-outqueries:AVERAGE \ @@ -56,7 +68,7 @@ function makeGraphs() rrdtool graph --start -$1 $WWWPREFIX/timeouts-$2.png -w $WSIZE -h $HSIZE -l 0\ - -t "Outqueries/timeouts counts per second" \ + -t "Outqueries/timeouts per second" \ -v "events" \ DEF:alloutqueries=pdns_recursor.rrd:all-outqueries:AVERAGE \ DEF:outgoingtimeouts=pdns_recursor.rrd:outgoing-timeouts:AVERAGE \ @@ -97,7 +109,7 @@ function makeGraphs() rrdtool graph --start -$1 $WWWPREFIX/hitrate-$2.png -w $WSIZE -h $HSIZE -l 0\ -v "percentage" \ - -t "cache hits" \ + -t "cache hits, cpu load" \ DEF:cachehits=pdns_recursor.rrd:cache-hits:AVERAGE \ DEF:cachemisses=pdns_recursor.rrd:cache-misses:AVERAGE \ DEF:usermsec=pdns_recursor.rrd:user-msec:AVERAGE \ diff --git a/pdns/tools/rrd/update b/pdns/tools/rrd/update index 207792b05..749fd18f3 100755 --- a/pdns/tools/rrd/update +++ b/pdns/tools/rrd/update @@ -8,7 +8,8 @@ VARIABLES="questions tcp-questions cache-entries concurrent-queries\ servfail-answers tcp-outqueries\ outgoing-timeouts nsspeeds-entries negcache-entries all-outqueries throttled-out\ cache-hits cache-misses answers0-1 answers1-10 answers10-100 answers100-1000 answers-slow\ - qa-latency throttle-entries sys-msec user-msec" + qa-latency throttle-entries sys-msec user-msec unauthorized-udp unauthorized-tcp client-parse-errors\ + server-parse-errors" UVARIABLES=$(echo $VARIABLES | tr '[a-z]' '[A-Z]' | tr - _ ) -- 2.49.0