Merge pull request #7694 from Icinga/feature/icingadb-stats-stream-add-timestamp

IcingaDB: Add timestamp to stats stream
This commit is contained in:
Alexander Aleksandrovič Klimov 2019-12-05 15:04:00 +01:00 committed by GitHub
commit 8c623aab5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -139,6 +139,7 @@ void IcingaDB::PublishStats()
Dictionary::Ptr status = GetStats();
status->Set("config_dump_in_progress", m_ConfigDumpInProgress);
status->Set("timestamp", TimestampToMilliseconds(Utility::GetTime()));
std::vector<String> eval ({"EVAL", l_LuaPublishStats, "1", "icinga:stats"});