]> granicus.if.org Git - pdns/commitdiff
Added weight and order values for all servers in Prometheus
authorPavel Odintsov <pavel@cloudflare.com>
Fri, 31 Aug 2018 12:27:48 +0000 (13:27 +0100)
committerPavel Odintsov <pavel@cloudflare.com>
Fri, 31 Aug 2018 12:27:48 +0000 (13:27 +0100)
pdns/dnsdist-web.cc

index 2aa967022ffa39dc2f2afa4aa0d928f5b96434a0..808f61dc014d3466fb40420dd733afcad890a5f7 100644 (file)
@@ -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) {