mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-29 16:44:29 +02:00
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)
|
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, "-", "_");
|
||||||
boost::replace_all(str, "\\", "_");
|
boost::replace_all(str, "\\", "_");
|
||||||
boost::replace_all(str, "/", "_");
|
boost::replace_all(str, "/", "_");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user