mirror of https://github.com/Icinga/icinga2.git
Sanitize dots in metric names too.
This commit is contained in:
parent
84a5e73d26
commit
10b2740dbe
|
@ -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, "/", "_");
|
||||
|
|
Loading…
Reference in New Issue