]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Document getStatisticsCounters() 13436/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 31 Oct 2023 09:57:05 +0000 (10:57 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 31 Oct 2023 09:57:05 +0000 (10:57 +0100)
pdns/dnsdistdist/docs/reference/config.rst

index 8e5d4fc599ec5f16cc4ca8bc7577411660fc341c..013740c53fdf673664a2d6ede5581be329cfde00 100644 (file)
@@ -1820,6 +1820,11 @@ Other functions
 
   :param str path: The path to the file, usually /etc/resolv.conf
 
+.. function:: getStatisticsCounters()
+
+  This function returns a Lua associative array of metrics, with the metric name as key and the current value
+  of the counter as value.
+
 .. function:: maintenance()
 
   If this function exists, it is called every second to do regular tasks.