mirror of
https://github.com/Icinga/icinga2.git
synced 2026-05-28 04:12:13 -04:00
parent
b92d26cac0
commit
37d9ccde94
1 changed files with 5 additions and 1 deletions
|
|
@ -117,7 +117,11 @@ void GraphiteWriter::CheckResultHandler(const Service::Ptr& service, const Check
|
|||
else
|
||||
valueNum = static_cast<PerfdataValue::Ptr>(value)->GetValue();
|
||||
|
||||
SendMetric(prefix, key, valueNum);
|
||||
String escaped_key = key;
|
||||
SanitizeMetric(escaped_key);
|
||||
boost::algorithm::replace_all(escaped_key, "::", ".");
|
||||
|
||||
SendMetric(prefix, escaped_key, valueNum);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue