From e3ae18d37e8c8a4fba8b02d11cfcae25fb6edf65 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 31 Oct 2023 10:57:05 +0100 Subject: [PATCH] dnsdist: Document getStatisticsCounters() --- pdns/dnsdistdist/docs/reference/config.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pdns/dnsdistdist/docs/reference/config.rst b/pdns/dnsdistdist/docs/reference/config.rst index 8e5d4fc599..013740c53f 100644 --- a/pdns/dnsdistdist/docs/reference/config.rst +++ b/pdns/dnsdistdist/docs/reference/config.rst @@ -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. -- 2.47.2