Management framework: add metrics port in management & Supervisor node records

This allows setting a metrics port for creation in new nodes.
This commit is contained in:
Christian Kreibich 2024-07-01 18:28:11 -07:00
parent 8eb74c04de
commit 563704a26e
2 changed files with 5 additions and 0 deletions

View file

@ -30,6 +30,8 @@ export {
## The PCAP file name from which the node will read/analyze packets. ## The PCAP file name from which the node will read/analyze packets.
## Typically used by worker nodes. ## Typically used by worker nodes.
pcap_file: string &optional; pcap_file: string &optional;
## The TCP port at which the cluster node exposes metrics for Prometheus.
metrics_port: port &optional;
}; };
## Configuration options that influence behavior of a supervised Zeek node. ## Configuration options that influence behavior of a supervised Zeek node.

View file

@ -60,6 +60,7 @@ export {
interface: string &optional; ##< Interface to sniff interface: string &optional; ##< Interface to sniff
cpu_affinity: int &optional; ##< CPU/core number to pin to cpu_affinity: int &optional; ##< CPU/core number to pin to
env: table[string] of string &default=table(); ##< Custom environment vars env: table[string] of string &default=table(); ##< Custom environment vars
metrics_port: port &optional; ##< Metrics exposure port, for Prometheus
}; };
## Data structure capturing a cluster's complete configuration. ## Data structure capturing a cluster's complete configuration.
@ -88,6 +89,8 @@ export {
pid: int &optional; pid: int &optional;
## The node's Broker peering listening port, if any. ## The node's Broker peering listening port, if any.
p: port &optional; p: port &optional;
## The node's metrics port for Prometheus, if any.
metrics_port: port &optional;
}; };
type NodeStatusVec: vector of NodeStatus; type NodeStatusVec: vector of NodeStatus;