]> granicus.if.org Git - pdns/commitdiff
Clarify meaning of dnsdist statistics
authorbert hubert <bert.hubert@netherlabs.nl>
Thu, 4 Oct 2018 08:20:10 +0000 (10:20 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Thu, 4 Oct 2018 08:20:10 +0000 (10:20 +0200)
The various statistics kept by dnsdist do add up to a coherent picture, this PR documents how.

pdns/dnsdistdist/docs/statistics.rst

index 7da54dcad9ace870ad7bf3e1ae5027a48de16b64..7344afd7d654a0f1614fc2b210807aa39183ccc2 100644 (file)
@@ -10,9 +10,21 @@ dnsdist keeps statistics on the queries is receives and send out. They can be ac
 - via Carbon / Graphite / Metronome export (see :doc:`../guides/carbon`)
 - via SNMP (see :doc:`../advanced/snmp`)
 
+To make sense of the statistics, the following relation should hold:
+
+       queries - noncompliant-queries
+       =
+       responses - noncompliant-responses + cache-hits + downstream-timeouts + self-answered + no-policy
+       + rule-drop
+
+Note that packets dropped by eBPF (see :doc:`../advanced/ebpf`) are
+accounted for in the eBPF statistics, and do not show up in the metrics
+described on this page.
+
 acl-drops
 ---------
-The number of packets dropped because of the :doc:`ACL <advanced/acl>`.
+The number of packets (or TCP messages) dropped because of the :doc:`ACL <advanced/acl>`.
+If a packet or message is dropped, it is not counted in the `queries` statistic.
 
 cache-hits
 ----------
@@ -48,7 +60,8 @@ Number of queries dropped because of a dynamic block.
 
 empty-queries
 -------------
-Number of empty queries received from clients.
+Number of empty queries received from clients. Every empty-query is also
+counted as a `query`.
 
 fd-usage
 --------