From: Remi Gacogne Date: Mon, 9 Jan 2023 16:26:34 +0000 (+0100) Subject: dnsdist: Fix a typo in the prometheus type X-Git-Tag: dnsdist-1.8.0-rc1~118^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e95c352da3fc4ad9c03d5cde7c6957fe85889c4f;p=thirdparty%2Fpdns.git dnsdist: Fix a typo in the prometheus type --- diff --git a/pdns/dnsdist-web.cc b/pdns/dnsdist-web.cc index 39363981f2..c85a52a8ee 100644 --- a/pdns/dnsdist-web.cc +++ b/pdns/dnsdist-web.cc @@ -565,7 +565,7 @@ static void handlePrometheus(const YaHTTP::Request& req, YaHTTP::Response& resp) output << "# HELP " << statesbase << "tcpavgconnduration " << "The average duration of a TCP connection (ms)" << "\n"; output << "# TYPE " << statesbase << "tcpavgconnduration " << "gauge" << "\n"; output << "# HELP " << statesbase << "tlsresumptions " << "The number of times a TLS session has been resumed" << "\n"; - output << "# TYPE " << statesbase << "tlsersumptions " << "counter" << "\n"; + output << "# TYPE " << statesbase << "tlsresumptions " << "counter" << "\n"; output << "# HELP " << statesbase << "tcplatency " << "Server's latency when answering TCP questions in milliseconds" << "\n"; output << "# TYPE " << statesbase << "tcplatency " << "gauge" << "\n"; diff --git a/pdns/dnsdistdist/docs/guides/webserver.rst b/pdns/dnsdistdist/docs/guides/webserver.rst index 14e0864c45..80f7834586 100755 --- a/pdns/dnsdistdist/docs/guides/webserver.rst +++ b/pdns/dnsdistdist/docs/guides/webserver.rst @@ -407,7 +407,7 @@ URL Endpoints # HELP dnsdist_server_tcpavgconnduration The average duration of a TCP connection (ms) # TYPE dnsdist_server_tcpavgconnduration gauge # HELP dnsdist_server_tlsresumptions The number of times a TLS session has been resumed - # TYPE dnsdist_server_tlsersumptions counter + # TYPE dnsdist_server_tlsresumptions counter # HELP dnsdist_server_tcplatency Server's latency when answering TCP questions in milliseconds # TYPE dnsdist_server_tcplatency gauge dnsdist_server_status{server="9_9_9_9:443",address="9.9.9.9:443"} 1