From 5b8b777691be9383aa860af351dc14cc2c01e2b7 Mon Sep 17 00:00:00 2001 From: Noah Hilverling Date: Thu, 5 Dec 2019 10:32:15 +0100 Subject: [PATCH] IcingaDB: Add timestamp to stats stream --- lib/icingadb/icingadb.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/icingadb/icingadb.cpp b/lib/icingadb/icingadb.cpp index 985c9d46d..25170b772 100644 --- a/lib/icingadb/icingadb.cpp +++ b/lib/icingadb/icingadb.cpp @@ -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 eval ({"EVAL", l_LuaPublishStats, "1", "icinga:stats"});