From: Pavel Odintsov Date: Fri, 31 Aug 2018 15:01:33 +0000 (+0100) Subject: Removed dnsdist_querycount_queries metric group X-Git-Tag: dnsdist-1.3.3~128^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e5e7db9fb4d8248ce511d6e33afb605c2d329ed;p=thirdparty%2Fpdns.git Removed dnsdist_querycount_queries metric group --- diff --git a/pdns/dnsdist-web.cc b/pdns/dnsdist-web.cc index 1aa7e6457f..7eaa482106 100644 --- a/pdns/dnsdist-web.cc +++ b/pdns/dnsdist-web.cc @@ -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"; } diff --git a/pdns/dnsdistdist/docs/guides/webserver.rst b/pdns/dnsdistdist/docs/guides/webserver.rst index 6d666217a9..bc4e9335b0 100644 --- a/pdns/dnsdistdist/docs/guides/webserver.rst +++ b/pdns/dnsdistdist/docs/guides/webserver.rst @@ -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**: