Use derive instead of counter to avoid spikes

This commit is contained in:
Tony Murray
2016-08-01 08:32:17 -05:00
parent 1fe334690c
commit aa23c19b78

View File

@@ -41,64 +41,64 @@ if ($agent_data['app'][$name]) {
if (!empty($data)) {
$rrd_def = array(
'all-outqueries' => 'DS:all-outqueries:COUNTER:600:0:U',
'answers-slow' => 'DS:answers-slow:COUNTER:600:0:U',
'answers0-1' => 'DS:answers0-1:COUNTER:600:0:U',
'answers1-10' => 'DS:answers1-10:COUNTER:600:0:U',
'answers10-100' => 'DS:answers10-100:COUNTER:600:0:U',
'answers100-1000' => 'DS:answers100-1000:COUNTER:600:0:U',
'all-outqueries' => 'DS:all-outqueries:DERIVE:600:0:U',
'answers-slow' => 'DS:answers-slow:DERIVE:600:0:U',
'answers0-1' => 'DS:answers0-1:DERIVE:600:0:U',
'answers1-10' => 'DS:answers1-10:DERIVE:600:0:U',
'answers10-100' => 'DS:answers10-100:DERIVE:600:0:U',
'answers100-1000' => 'DS:answers100-1000:DERIVE:600:0:U',
'cache-entries' => 'DS:cache-entries:GAUGE:600:0:U',
'cache-hits' => 'DS:cache-hits:COUNTER:600:0:U',
'cache-misses' => 'DS:cache-misses:COUNTER:600:0:U',
'case-mismatches' => 'DS:case-mismatches:COUNTER:600:0:U',
'chain-resends' => 'DS:chain-resends:COUNTER:600:0:U',
'client-parse-errors' => 'DS:client-parse-errors:COUNTER:600:0:U',
'cache-hits' => 'DS:cache-hits:DERIVE:600:0:U',
'cache-misses' => 'DS:cache-misses:DERIVE:600:0:U',
'case-mismatches' => 'DS:case-mismatches:DERIVE:600:0:U',
'chain-resends' => 'DS:chain-resends:DERIVE:600:0:U',
'client-parse-errors' => 'DS:client-parse-errors:DERIVE:600:0:U',
'concurrent-queries' => 'DS:concurrent-queries:GAUGE:600:0:U',
'dlg-only-drops' => 'DS:dlg-only-drops:COUNTER:600:0:U',
'dont-outqueries' => 'DS:dont-outqueries:COUNTER:600:0:U',
'edns-ping-matches' => 'DS:edns-ping-matches:COUNTER:600:0:U',
'edns-ping-mismatches' => 'DS:edns-ping-mismatches:COUNTER:600:0:U',
'dlg-only-drops' => 'DS:dlg-only-drops:DERIVE:600:0:U',
'dont-outqueries' => 'DS:dont-outqueries:DERIVE:600:0:U',
'edns-ping-matches' => 'DS:edns-ping-matches:DERIVE:600:0:U',
'edns-ping-mismatches' => 'DS:edns-ping-mismatches:DERIVE:600:0:U',
'failed-host-entries' => 'DS:failed-host-entries:GAUGE:600:0:U',
'ipv6-outqueries' => 'DS:ipv6-outqueries:COUNTER:600:0:U',
'ipv6-questions' => 'DS:ipv6-questions:COUNTER:600:0:U',
'ipv6-outqueries' => 'DS:ipv6-outqueries:DERIVE:600:0:U',
'ipv6-questions' => 'DS:ipv6-questions:DERIVE:600:0:U',
'malloc-bytes' => 'DS:malloc-bytes:GAUGE:600:0:U',
'max-mthread-stack' => 'DS:max-mthread-stack:GAUGE:600:0:U',
'negcache-entries' => 'DS:negcache-entries:GAUGE:600:0:U',
'no-packet-error' => 'DS:no-packet-error:COUNTER:600:0:U',
'noedns-outqueries' => 'DS:noedns-outqueries:COUNTER:600:0:U',
'noerror-answers' => 'DS:noerror-answers:COUNTER:600:0:U',
'noping-outqueries' => 'DS:noping-outqueries:COUNTER:600:0:U',
'nsset-invalidations' => 'DS:nsset-invalidations:COUNTER:600:0:U',
'no-packet-error' => 'DS:no-packet-error:DERIVE:600:0:U',
'noedns-outqueries' => 'DS:noedns-outqueries:DERIVE:600:0:U',
'noerror-answers' => 'DS:noerror-answers:DERIVE:600:0:U',
'noping-outqueries' => 'DS:noping-outqueries:DERIVE:600:0:U',
'nsset-invalidations' => 'DS:nsset-invalidations:DERIVE:600:0:U',
'nsspeeds-entries' => 'DS:nsspeeds-entries:GAUGE:600:0:U',
'nxdomain-answers' => 'DS:nxdomain-answers:COUNTER:600:0:U',
'outgoing-timeouts' => 'DS:outgoing-timeouts:COUNTER:600:0:U',
'over-capacity-drops' => 'DS:over-capacity-drops:COUNTER:600:0:U',
'nxdomain-answers' => 'DS:nxdomain-answers:DERIVE:600:0:U',
'outgoing-timeouts' => 'DS:outgoing-timeouts:DERIVE:600:0:U',
'over-capacity-drops' => 'DS:over-capacity-drops:DERIVE:600:0:U',
'packetcache-entries' => 'DS:packetcache-entries:GAUGE:600:0:U',
'packetcache-hits' => 'DS:packetcache-hits:COUNTER:600:0:U',
'packetcache-misses' => 'DS:packetcache-misses:COUNTER:600:0:U',
'policy-drops' => 'DS:policy-drops:COUNTER:600:0:U',
'packetcache-hits' => 'DS:packetcache-hits:DERIVE:600:0:U',
'packetcache-misses' => 'DS:packetcache-misses:DERIVE:600:0:U',
'policy-drops' => 'DS:policy-drops:DERIVE:600:0:U',
'qa-latency' => 'DS:qa-latency:GAUGE:600:0:U',
'questions' => 'DS:questions:COUNTER:600:0:U',
'resource-limits' => 'DS:resource-limits:COUNTER:600:0:U',
'questions' => 'DS:questions:DERIVE:600:0:U',
'resource-limits' => 'DS:resource-limits:DERIVE:600:0:U',
'security-status' => 'DS:security-status:GAUGE:600:0:U',
'server-parse-errors' => 'DS:server-parse-errors:COUNTER:600:0:U',
'servfail-answers' => 'DS:servfail-answers:COUNTER:600:0:U',
'spoof-prevents' => 'DS:spoof-prevents:COUNTER:600:0:U',
'sys-msec' => 'DS:sys-msec:COUNTER:600:0:U',
'tcp-client-overflow' => 'DS:tcp-client-overflow:COUNTER:600:0:U',
'server-parse-errors' => 'DS:server-parse-errors:DERIVE:600:0:U',
'servfail-answers' => 'DS:servfail-answers:DERIVE:600:0:U',
'spoof-prevents' => 'DS:spoof-prevents:DERIVE:600:0:U',
'sys-msec' => 'DS:sys-msec:DERIVE:600:0:U',
'tcp-client-overflow' => 'DS:tcp-client-overflow:DERIVE:600:0:U',
'tcp-clients' => 'DS:tcp-clients:GAUGE:600:0:U',
'tcp-outqueries' => 'DS:tcp-outqueries:COUNTER:600:0:U',
'tcp-questions' => 'DS:tcp-questions:COUNTER:600:0:U',
'tcp-outqueries' => 'DS:tcp-outqueries:DERIVE:600:0:U',
'tcp-questions' => 'DS:tcp-questions:DERIVE:600:0:U',
'throttle-entries' => 'DS:throttle-entries:GAUGE:600:0:U',
'throttled-out' => 'DS:throttled-out:COUNTER:600:0:U',
'throttled-outqueries' => 'DS:throttled-outquerie:COUNTER:600:0:U',
'too-old-drops' => 'DS:too-old-drops:COUNTER:600:0:U',
'unauthorized-tcp' => 'DS:unauthorized-tcp:COUNTER:600:0:U',
'unauthorized-udp' => 'DS:unauthorized-udp:COUNTER:600:0:U',
'unexpected-packets' => 'DS:unexpected-packets:COUNTER:600:0:U',
'unreachables' => 'DS:unreachables:COUNTER:600:0:U',
'uptime' => 'DS:uptime:COUNTER:600:0:U',
'user-msec' => 'DS:user-msec:COUNTER:600:0:U',
'throttled-out' => 'DS:throttled-out:DERIVE:600:0:U',
'throttled-outqueries' => 'DS:throttled-outquerie:DERIVE:600:0:U',
'too-old-drops' => 'DS:too-old-drops:DERIVE:600:0:U',
'unauthorized-tcp' => 'DS:unauthorized-tcp:DERIVE:600:0:U',
'unauthorized-udp' => 'DS:unauthorized-udp:DERIVE:600:0:U',
'unexpected-packets' => 'DS:unexpected-packets:DERIVE:600:0:U',
'unreachables' => 'DS:unreachables:DERIVE:600:0:U',
'uptime' => 'DS:uptime:DERIVE:600:0:U',
'user-msec' => 'DS:user-msec:DERIVE:600:0:U',
);
//decode and flatten the data