]> granicus.if.org Git - pdns/commitdiff
dnsdist: show droprate in API output
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 2 May 2018 15:28:36 +0000 (17:28 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Wed, 2 May 2018 15:31:24 +0000 (17:31 +0200)
pdns/dnsdist-web.cc
pdns/dnsdistdist/docs/guides/webserver.rst

index 8cee0f379fde7cae06f98f698d094610a586c6ec..10407d011bce78229d3072d02e26118178189471 100644 (file)
@@ -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 */
index 9bfc57216b4d71d6f07c8fe8cf3b83339494bb07..aa07e9f4bc92a3d45196343c2efd7d7a67ad9c71 100644 (file)
@@ -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