From: Kees Monshouwer Date: Fri, 8 Jul 2016 19:32:46 +0000 (+0200) Subject: add used filedescriptor statistics to auth X-Git-Tag: auth-4.0.1~18^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24538841d8a8fe384d543dd997ef84466f7e0e25;p=thirdparty%2Fpdns.git add used filedescriptor statistics to auth --- diff --git a/pdns/common_startup.cc b/pdns/common_startup.cc index c783d9a747..02aebae4b5 100644 --- a/pdns/common_startup.cc +++ b/pdns/common_startup.cc @@ -285,6 +285,7 @@ void declareStats(void) S.declare("uptime", "Uptime of process in seconds", uptimeOfProcess); S.declare("real-memory-usage", "Actual unique use of memory in bytes (approx)", getRealMemoryUsage); + S.declare("fd-usage", "Number of open filedescriptors", getOpenFileDescriptors); #ifdef __linux__ S.declare("udp-recvbuf-errors", "UDP 'recvbuf' errors", udpErrorStats); S.declare("udp-sndbuf-errors", "UDP 'sndbuf' errors", udpErrorStats); diff --git a/regression-tests.nobackend/counters/expected_result b/regression-tests.nobackend/counters/expected_result index fc566f6ff2..5c07f6d2f2 100644 --- a/regression-tests.nobackend/counters/expected_result +++ b/regression-tests.nobackend/counters/expected_result @@ -6,6 +6,7 @@ dnsupdate-answers=0 dnsupdate-changes=0 dnsupdate-queries=0 dnsupdate-refused=0 +fd-usage=18 incoming-notifications=0 key-cache-size=0 latency=0