Sanitize dots in metric names too.

This commit is contained in:
Michael Friedrich 2013-10-21 13:55:23 +02:00
parent 84a5e73d26
commit 10b2740dbe
1 changed files with 1 additions and 0 deletions

View File

@ -261,6 +261,7 @@ void GraphiteWriter::SendMetrics(const std::vector<String>& metrics)
void GraphiteWriter::SanitizeMetric(String& str)
{
boost::replace_all(str, " ", "_");
boost::replace_all(str, ".", "_");
boost::replace_all(str, "-", "_");
boost::replace_all(str, "\\", "_");
boost::replace_all(str, "/", "_");