From: Pavel Odintsov Date: Mon, 1 Oct 2018 13:51:23 +0000 (+0100) Subject: Export Prometheus metric about number of alive servers in pool X-Git-Tag: dnsdist-1.3.3~73^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F7007%2Fhead;p=thirdparty%2Fpdns.git Export Prometheus metric about number of alive servers in pool --- 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;