From 5040e50726e8641f8c7523634186e3642bb2b528 Mon Sep 17 00:00:00 2001 From: Pavel Odintsov Date: Mon, 1 Oct 2018 14:51:23 +0100 Subject: [PATCH] Export Prometheus metric about number of alive servers in pool --- pdns/dnsdist-web.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/pdns/dnsdist-web.cc b/pdns/dnsdist-web.cc index e2e756c8ea..dc9c5545f2 100644 --- a/pdns/dnsdist-web.cc +++ b/pdns/dnsdist-web.cc @@ -475,6 +475,7 @@ static void connectionThread(int sock, ComboAddress remote, string password, str const string label = "{pool=\"" + poolName + "\"}"; const std::shared_ptr pool = entry.second; output << "dnsdist_pool_servers" << label << " " << pool->countServers(false) << "\n"; + output << "dnsdist_pool_active_servers" << label << " " << pool->countServers(true) << "\n"; if (pool->packetCache != nullptr) { const auto& cache = pool->packetCache; -- 2.47.2