mirror of https://github.com/Icinga/icinga2.git
parent
a4b7984719
commit
de5485060e
|
@ -169,10 +169,13 @@ void GraphiteWriter::SendPerfdata(const String& prefix, const CheckResult::Ptr&
|
|||
void GraphiteWriter::SendMetric(const String& prefix, const String& name, double value)
|
||||
{
|
||||
std::ostringstream msgbuf;
|
||||
msgbuf << prefix << "." << name << " " << Convert::ToString(value) << " " << static_cast<long>(Utility::GetTime()) << "\n";
|
||||
msgbuf << prefix << "." << name << " " << Convert::ToString(value) << " " << static_cast<long>(Utility::GetTime());
|
||||
|
||||
Log(LogDebug, "GraphiteWriter", "Add to metric list:'" + msgbuf.str() + "'.");
|
||||
|
||||
// do not send \n to debug log
|
||||
msgbuf << "\n";
|
||||
String metric = msgbuf.str();
|
||||
Log(LogDebug, "GraphiteWriter", "GraphiteWriter: Add to metric list:'" + metric + "'.");
|
||||
|
||||
ObjectLock olock(this);
|
||||
|
||||
|
|
Loading…
Reference in New Issue