]> granicus.if.org Git - pdns/commitdiff
add metric line to interpolate value returned from countServersUp
authorLowell Mower <lmower@dyn.com>
Thu, 8 Mar 2018 21:26:35 +0000 (16:26 -0500)
committerLowell Mower <lmower@dyn.com>
Thu, 8 Mar 2018 21:26:35 +0000 (16:26 -0500)
pdns/dnsdist-carbon.cc

index caae0bb941d49adfce8ba8b263a95b63cbe45fd8..6ef88767f041a083603ce516e29504984a04b895 100644 (file)
@@ -112,6 +112,7 @@ try
           const string base = "dnsdist." + hostname + ".main.pools." + poolName + ".";
           const std::shared_ptr<ServerPool> pool = entry.second;
           str<<base<<"servers" << " " << pool->servers.size() << " " << now << "\r\n";
+          str<<base<<"servers-up" << " " << pool->countServersUp() << " " << now << "\r\n";
           if (pool->packetCache != nullptr) {
             const auto& cache = pool->packetCache;
             str<<base<<"cache-size" << " " << cache->getMaxEntries() << " " << now << "\r\n";