From: Pieter Lexis Date: Wed, 2 May 2018 15:28:36 +0000 (+0200) Subject: dnsdist: show droprate in API output X-Git-Tag: dnsdist-1.3.1~38^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=684f332e8cd60b4c7132c668e4e4f1492aab79d1;p=thirdparty%2Fpdns.git dnsdist: show droprate in API output --- diff --git a/pdns/dnsdist-web.cc b/pdns/dnsdist-web.cc index 8cee0f379f..10407d011b 100644 --- a/pdns/dnsdist-web.cc +++ b/pdns/dnsdist-web.cc @@ -414,7 +414,8 @@ static void connectionThread(int sock, ComboAddress remote, string password, str {"pools", pools}, {"latency", (double)(a->latencyUsec/1000.0)}, {"queries", (double)a->queries}, - {"sendErrors", (double)a->sendErrors} + {"sendErrors", (double)a->sendErrors}, + {"dropRate", (double)a->dropRate} }; /* sending a latency for a DOWN server doesn't make sense */ diff --git a/pdns/dnsdistdist/docs/guides/webserver.rst b/pdns/dnsdistdist/docs/guides/webserver.rst index 9bfc57216b..aa07e9f4bc 100644 --- a/pdns/dnsdistdist/docs/guides/webserver.rst +++ b/pdns/dnsdistdist/docs/guides/webserver.rst @@ -220,6 +220,7 @@ JSON Objects :property integer sendErrors: Number of network errors while sending a query to this server :property string state: The state of the server (e.g. "DOWN" or "up") :property integer weight: The weight assigned to this server + :property float dropRate: The amount of packets dropped per second by this server .. json:object:: StatisticItem