]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Fix a typo in the prometheus metric name for TCP reuseds
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 9 Mar 2021 17:38:24 +0000 (18:38 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 9 Mar 2021 17:38:24 +0000 (18:38 +0100)
pdns/dnsdist-web.cc

index 311e4d98e22c7d84dbb17ef6023d5a0d89e84588..075406fe10c2a68eb1ae1e81954a3b78fd399ead 100644 (file)
@@ -478,8 +478,8 @@ static void handlePrometheus(const YaHTTP::Request& req, YaHTTP::Response& resp)
   output << "# TYPE " << statesbase << "tcpcurrentconnections "  << "gauge"                                                             << "\n";
   output << "# HELP " << statesbase << "tcpnewconnections "      << "The number of established TCP connections in total"                << "\n";
   output << "# TYPE " << statesbase << "tcpnewconnections "      << "counter"                                                           << "\n";
-  output << "# HELP " << statesbase << "tcpreusedsconnections "  << "The number of times a TCP connection has been reused"              << "\n";
-  output << "# TYPE " << statesbase << "tcpreusedsconnections "  << "counter"                                                           << "\n";
+  output << "# HELP " << statesbase << "tcpreusedconnections "   << "The number of times a TCP connection has been reused"              << "\n";
+  output << "# TYPE " << statesbase << "tcpreusedconnections "   << "counter"                                                           << "\n";
   output << "# HELP " << statesbase << "tcpavgqueriesperconn "   << "The average number of queries per TCP connection"                  << "\n";
   output << "# TYPE " << statesbase << "tcpavgqueriesperconn "   << "gauge"                                                             << "\n";
   output << "# HELP " << statesbase << "tcpavgconnduration "     << "The average duration of a TCP connection (ms)"                     << "\n";