From: Pavel Odintsov Date: Fri, 31 Aug 2018 12:27:48 +0000 (+0100) Subject: Added weight and order values for all servers in Prometheus X-Git-Tag: dnsdist-1.3.3~128^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac2463217bc3e990f9b896e09fbb6ac6e38ac728;p=thirdparty%2Fpdns.git Added weight and order values for all servers in Prometheus --- diff --git a/pdns/dnsdist-web.cc b/pdns/dnsdist-web.cc index 2aa967022f..808f61dc01 100644 --- a/pdns/dnsdist-web.cc +++ b/pdns/dnsdist-web.cc @@ -445,6 +445,8 @@ static void connectionThread(int sock, ComboAddress remote, string password, str output << statesbase << "latency" << label << " " << state->latencyUsec/1000.0 << "\n"; output << statesbase << "senderrors" << label << " " << state->sendErrors.load() << "\n"; output << statesbase << "outstanding" << label << " " << state->outstanding.load() << "\n"; + output << statesbase << "order" << label << " " << state->order << "\n"; + output << statesbase << "weight" << label << " " << state->weight << "\n"; } for (const auto& front : g_frontends) {