mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Management framework: propagate metrics port from agent
This propagates the metrics port from the node config passed through the supervisor all the way into the script layer.
This commit is contained in:
parent
563704a26e
commit
fa6361af56
2 changed files with 11 additions and 3 deletions
|
@ -49,6 +49,8 @@ function __init_cluster_nodes(): bool
|
|||
@pragma pop ignore-deprecations
|
||||
if ( |manager_name| > 0 && cnode$node_type != Cluster::MANAGER )
|
||||
cnode$manager = manager_name;
|
||||
if ( endp?$metrics_port )
|
||||
cnode$metrics_port = endp$metrics_port;
|
||||
|
||||
Cluster::nodes[node_name] = cnode;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue