From: Gibheer Date: Thu, 20 Sep 2018 08:36:29 +0000 (+0200) Subject: use correct variable in carbon key string X-Git-Tag: auth-4.2.0-alpha1~49^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b84eec90a54df8dc2f40909a71cba99774cd6f5;p=thirdparty%2Fpdns.git use correct variable in carbon key string --- diff --git a/pdns/dnsdist-carbon.cc b/pdns/dnsdist-carbon.cc index 0e879ae6a0..4a603794ec 100644 --- a/pdns/dnsdist-carbon.cc +++ b/pdns/dnsdist-carbon.cc @@ -93,7 +93,7 @@ try for(const auto& state : *states) { string serverName = state->name.empty() ? (state->remote.toString() + ":" + std::to_string(state->remote.getPort())) : state->getName(); boost::replace_all(serverName, ".", "_"); - const string base = instance_name + "." + hostname + "." + instance_name + ".servers." + serverName + "."; + const string base = namespace_name + "." + hostname + "." + instance_name + ".servers." + serverName + "."; str<queries.load() << " " << now << "\r\n"; str<reuseds.load() << " " << now << "\r\n"; str<availability != DownstreamState::Availability::Down ? state->latencyUsec/1000.0 : 0) << " " << now << "\r\n";