mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 06:05:01 +02:00
Revert "Influx DB: don't unneccessarily truncate timestamps to whole seconds"
This reverts commit eaa3cd83adf860732b955a77b8f5fca7e30c65c2.
This commit is contained in:
parent
fc5b1178c6
commit
cc9db3756f
@ -37,7 +37,6 @@
|
|||||||
#include <boost/math/special_functions/fpclassify.hpp>
|
#include <boost/math/special_functions/fpclassify.hpp>
|
||||||
#include <boost/regex.hpp>
|
#include <boost/regex.hpp>
|
||||||
#include <boost/scoped_array.hpp>
|
#include <boost/scoped_array.hpp>
|
||||||
#include <iomanip>
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
@ -399,7 +398,7 @@ void InfluxdbCommonWriter::SendMetric(const Checkable::Ptr& checkable, const Dic
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
msgbuf << " " << std::fixed << std::setprecision(0) << ts * 1.0e9;
|
msgbuf << " " << static_cast<unsigned long>(ts);
|
||||||
|
|
||||||
Log(LogDebug, GetReflectionType()->GetName())
|
Log(LogDebug, GetReflectionType()->GetName())
|
||||||
<< "Checkable '" << checkable->GetName() << "' adds to metric list:'" << msgbuf.str() << "'.";
|
<< "Checkable '" << checkable->GetName() << "' adds to metric list:'" << msgbuf.str() << "'.";
|
||||||
@ -554,7 +553,7 @@ Url::Ptr InfluxdbCommonWriter::AssembleBaseUrl()
|
|||||||
url->SetScheme(GetSslEnable() ? "https" : "http");
|
url->SetScheme(GetSslEnable() ? "https" : "http");
|
||||||
url->SetHost(GetHost());
|
url->SetHost(GetHost());
|
||||||
url->SetPort(GetPort());
|
url->SetPort(GetPort());
|
||||||
url->AddQueryElement("precision", "ns");
|
url->AddQueryElement("precision", "s");
|
||||||
|
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user