]> granicus.if.org Git - pdns/commitdiff
Do not replace dot in metric names. Use singular form for metric base name
authorPavel Odintsov <pavel@cloudflare.com>
Fri, 31 Aug 2018 15:04:59 +0000 (16:04 +0100)
committerPavel Odintsov <pavel@cloudflare.com>
Fri, 31 Aug 2018 15:04:59 +0000 (16:04 +0100)
pdns/dnsdist-web.cc

index 7eaa4821064282344640cedd5889e44888b224ad..ca979a56cd660bec1940e57ad300916033e62ecb 100644 (file)
@@ -427,7 +427,7 @@ static void connectionThread(int sock, ComboAddress remote, string password, str
         }
 
         auto states = g_dstates.getLocal();
-        const string statesbase = "dnsdist_servers_";
+        const string statesbase = "dnsdist_server_";
         
         for (const auto& state : *states) {
           string serverName;
@@ -454,7 +454,6 @@ static void connectionThread(int sock, ComboAddress remote, string password, str
             continue;
 
           string frontName = front->local.toString() + ":" + std::to_string(front->local.getPort());
-          boost::replace_all(frontName, ".", "_");
           string proto = (front->udpFD >= 0 ? "udp" : "tcp");
 
           output << "dnsdist_frontend_queries{frontend=\"" << frontName << "\",proto=\"" << proto
@@ -466,7 +465,6 @@ static void connectionThread(int sock, ComboAddress remote, string password, str
         
         for (const auto& entry : *localPools) {
           string poolName = entry.first;
-          boost::replace_all(poolName, ".", "_");
           
           if (poolName.empty()) {
             poolName = "_default_";