]> granicus.if.org Git - pdns/commitdiff
Removed dnsdist_querycount_queries metric group
authorPavel Odintsov <pavel@cloudflare.com>
Fri, 31 Aug 2018 15:01:33 +0000 (16:01 +0100)
committerPavel Odintsov <pavel@cloudflare.com>
Fri, 31 Aug 2018 15:01:33 +0000 (16:01 +0100)
pdns/dnsdist-web.cc
pdns/dnsdistdist/docs/guides/webserver.rst

index 1aa7e6457fd3f228830f245b3dcdf6fbdf949e5c..7eaa4821064282344640cedd5889e44888b224ad 100644 (file)
@@ -490,20 +490,6 @@ static void connectionThread(int sock, ComboAddress remote, string password, str
           }
         }
 
-        {
-          ReadLock rl(&g_qcount.queryLock);
-          std::string qname;
-          const string qnamebase = "dnsdist_querycount_queries";
-
-          for(auto &record: g_qcount.records) {
-            qname = record.first;
-            boost::replace_all(qname, ".", "_");
-           
-            const std::string label = "{qname=\"" + qname + "\"}";
-            output << qnamebase << label << " " << record.second << "\n";
-          }
-        }
-
         resp.body = output.str();
         resp.headers["Content-Type"] = "text/plain";
     }
index 6d666217a945a680bd4397ed2b9fd1a7d99d2730..bc4e9335b08c4b54a6e219c546cf7eae4d34b183 100644 (file)
@@ -255,7 +255,6 @@ URL Endpoints
       dnsdist_pool_cache_lookup_collisions{pool="_default_"} 0
       dnsdist_pool_cache_insert_collisions{pool="_default_"} 0
       dnsdist_pool_cache_ttl_too_shorts{pool="_default_"} 0
-      dnsdist_querycount_queries{qname="kernel_org_"} 1
 
   **Example prometheus configuration**: