Fix function for escaping host tag chars.

refs #5963
This commit is contained in:
Federico Pires 2018-01-10 11:07:11 -03:00
parent e26494bf08
commit 5cdc7c03f2
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ void OpenTsdbWriter::CheckResultHandler(const Checkable::Ptr& checkable, const C
String metric; String metric;
std::map<String, String> tags; std::map<String, String> tags;
String escaped_hostName = EscapeMetric(host->GetName()); String escaped_hostName = EscapeTag(host->GetName());
tags["host"] = escaped_hostName; tags["host"] = escaped_hostName;
double ts = cr->GetExecutionEnd(); double ts = cr->GetExecutionEnd();