From ac2463217bc3e990f9b896e09fbb6ac6e38ac728 Mon Sep 17 00:00:00 2001 From: Pavel Odintsov Date: Fri, 31 Aug 2018 13:27:48 +0100 Subject: [PATCH] Added weight and order values for all servers in Prometheus --- pdns/dnsdist-web.cc | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.47.2