IcingaDB: write new environment to icinga:stats stream

This commit is contained in:
Julian Brost 2021-10-13 12:40:56 +02:00
parent 525dd50859
commit 4ade4c757b
1 changed files with 1 additions and 0 deletions

View File

@ -186,6 +186,7 @@ void IcingaDB::PublishStats()
Dictionary::Ptr status = GetStats();
status->Set("config_dump_in_progress", m_ConfigDumpInProgress);
status->Set("timestamp", TimestampToMilliseconds(Utility::GetTime()));
status->Set("icingadb_environment", m_EnvironmentId);
std::vector<String> query {"XADD", "icinga:stats", "MAXLEN", "1", "*"};