mirror of https://github.com/Icinga/icinga2.git
Merge pull request #7694 from Icinga/feature/icingadb-stats-stream-add-timestamp
IcingaDB: Add timestamp to stats stream
This commit is contained in:
commit
8c623aab5a
|
@ -139,6 +139,7 @@ void IcingaDB::PublishStats()
|
||||||
|
|
||||||
Dictionary::Ptr status = GetStats();
|
Dictionary::Ptr status = GetStats();
|
||||||
status->Set("config_dump_in_progress", m_ConfigDumpInProgress);
|
status->Set("config_dump_in_progress", m_ConfigDumpInProgress);
|
||||||
|
status->Set("timestamp", TimestampToMilliseconds(Utility::GetTime()));
|
||||||
|
|
||||||
std::vector<String> eval ({"EVAL", l_LuaPublishStats, "1", "icinga:stats"});
|
std::vector<String> eval ({"EVAL", l_LuaPublishStats, "1", "icinga:stats"});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue