diff --git a/components/perfdata/graphitewriter.cpp b/components/perfdata/graphitewriter.cpp index bf53a68d3..949ab7da8 100644 --- a/components/perfdata/graphitewriter.cpp +++ b/components/perfdata/graphitewriter.cpp @@ -117,7 +117,11 @@ void GraphiteWriter::CheckResultHandler(const Service::Ptr& service, const Check else valueNum = static_cast(value)->GetValue(); - SendMetric(prefix, key, valueNum); + String escaped_key = key; + SanitizeMetric(escaped_key); + boost::algorithm::replace_all(escaped_key, "::", "."); + + SendMetric(prefix, escaped_key, valueNum); } }