mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
zeek-setup: Ensure telemetry_mgr is created before other managers
It's difficult to initialize metrics families in the constructor of other Managers if the telemetry_mgr isn't around yet.
This commit is contained in:
parent
8e2d68ffec
commit
6ada6b0426
1 changed files with 2 additions and 2 deletions
|
@ -705,6 +705,7 @@ SetupResult setup(int argc, char** argv, Options* zopts)
|
|||
// policy, but we can't parse policy without DNS resolution.
|
||||
dns_mgr->SetDir(".state");
|
||||
|
||||
telemetry_mgr = new telemetry::Manager;
|
||||
iosource_mgr = new iosource::Manager();
|
||||
event_registry = new EventRegistry();
|
||||
packet_mgr = new packet_analysis::Manager();
|
||||
|
@ -714,7 +715,6 @@ SetupResult setup(int argc, char** argv, Options* zopts)
|
|||
file_mgr = new file_analysis::Manager();
|
||||
auto broker_real_time = ! options.pcap_file && ! options.deterministic_mode;
|
||||
broker_mgr = new Broker::Manager(broker_real_time);
|
||||
telemetry_mgr = new telemetry::Manager;
|
||||
trigger_mgr = new trigger::Manager();
|
||||
|
||||
plugin_mgr->InitPreScript();
|
||||
|
@ -839,12 +839,12 @@ SetupResult setup(int argc, char** argv, Options* zopts)
|
|||
if ( reporter->Errors() > 0 )
|
||||
exit(1);
|
||||
|
||||
telemetry_mgr->InitPostScript();
|
||||
iosource_mgr->InitPostScript();
|
||||
log_mgr->InitPostScript();
|
||||
plugin_mgr->InitPostScript();
|
||||
zeekygen_mgr->InitPostScript();
|
||||
broker_mgr->InitPostScript();
|
||||
telemetry_mgr->InitPostScript();
|
||||
timer_mgr->InitPostScript();
|
||||
event_mgr.InitPostScript();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue