From: Remi Gacogne Date: Tue, 26 Mar 2019 13:26:41 +0000 (+0100) Subject: dnsdist: Fix invalid carbon formatting for TCP stats X-Git-Tag: dnsdist-1.4.0-alpha1~25^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2609f6e264e3ab7c830919d55fd5d6d73995e6cb;p=pdns dnsdist: Fix invalid carbon formatting for TCP stats --- diff --git a/pdns/dnsdist-carbon.cc b/pdns/dnsdist-carbon.cc index b9b43a714..9ad220f40 100644 --- a/pdns/dnsdist-carbon.cc +++ b/pdns/dnsdist-carbon.cc @@ -95,11 +95,11 @@ try str<availability != DownstreamState::Availability::Down ? state->latencyUsec/1000.0 : 0) << " " << now << "\r\n"; str<sendErrors.load() << " " << now << "\r\n"; str<outstanding.load() << " " << now << "\r\n"; - str<tcpDiedSendingQuery.load() << " " << now << "\r\n"; - str<tcpDiedReadingResponse.load() << " " << now << "\r\n"; - str<tcpGaveUp.load() << " " << now << "\r\n"; - str<tcpReadTimeouts.load() << " " << now << "\r\n"; - str<tcpWriteTimeouts.load() << " " << now << "\r\n"; + str<tcpDiedSendingQuery.load() << " " << now << "\r\n"; + str<tcpDiedReadingResponse.load() << " " << now << "\r\n"; + str<tcpGaveUp.load() << " " << now << "\r\n"; + str<tcpReadTimeouts.load() << " " << now << "\r\n"; + str<tcpWriteTimeouts.load() << " " << now << "\r\n"; } for(const auto& front : g_frontends) { if (front->udpFD == -1 && front->tcpFD == -1) @@ -109,11 +109,11 @@ try boost::replace_all(frontName, ".", "_"); const string base = namespace_name + "." + hostname + "." + instance_name + ".frontends." + frontName + "."; str<queries.load() << " " << now << "\r\n"; - str<tcpDiedReadingQuery.load() << " " << now << "\r\n"; - str<tcpDiedSendingResponse.load() << " " << now << "\r\n"; - str<tcpGaveUp.load() << " " << now << "\r\n"; - str<tcpClientTimeouts.load() << " " << now << "\r\n"; - str<tcpDownstreamTimeouts.load() << " " << now << "\r\n"; + str<tcpDiedReadingQuery.load() << " " << now << "\r\n"; + str<tcpDiedSendingResponse.load() << " " << now << "\r\n"; + str<tcpGaveUp.load() << " " << now << "\r\n"; + str<tcpClientTimeouts.load() << " " << now << "\r\n"; + str<tcpDownstreamTimeouts.load() << " " << now << "\r\n"; } auto localPools = g_pools.getLocal(); for (const auto& entry : *localPools) {