mirror of https://github.com/Icinga/icinga2.git
parent
a43e8d6b2d
commit
c611a31670
|
@ -234,19 +234,19 @@ void InfluxdbWriter::CheckResultHandler(const Checkable::Ptr& checkable, const C
|
|||
// Prevent missing macros from warning; will return an empty value
|
||||
// which will be filtered out in SendMetric()
|
||||
String missing_macro;
|
||||
tags->Set(pair.first, MacroProcessor::ResolveMacros(pair.second, resolvers, cr, &missing_macro));
|
||||
tags->Set(pair.first, MacroProcessor::ResolveMacros(pair.second, resolvers, cr, &missing_macro));
|
||||
}
|
||||
}
|
||||
|
||||
SendPerfdata(tmpl, checkable, cr, ts);
|
||||
}
|
||||
|
||||
String InfluxdbWriter::FormatInteger(const int val)
|
||||
String InfluxdbWriter::FormatInteger(int val)
|
||||
{
|
||||
return Convert::ToString(val) + "i";
|
||||
}
|
||||
|
||||
String InfluxdbWriter::FormatBoolean(const bool val)
|
||||
String InfluxdbWriter::FormatBoolean(bool val)
|
||||
{
|
||||
return String(val);
|
||||
}
|
||||
|
|
|
@ -82,8 +82,8 @@ private:
|
|||
|
||||
void FlushHandler(const String& body);
|
||||
|
||||
static String FormatInteger(const int val);
|
||||
static String FormatBoolean(const bool val);
|
||||
static String FormatInteger(int val);
|
||||
static String FormatBoolean(bool val);
|
||||
|
||||
static String EscapeKey(const String& str);
|
||||
static String EscapeField(const String& str);
|
||||
|
|
Loading…
Reference in New Issue