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:
Christian Kreibich 2024-07-01 18:31:14 -07:00
parent 563704a26e
commit fa6361af56
2 changed files with 11 additions and 3 deletions

View file

@ -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;
}