diff --git a/scripts/base/frameworks/supervisor/api.zeek b/scripts/base/frameworks/supervisor/api.zeek index 97a286f8c9..e3a6d06c9b 100644 --- a/scripts/base/frameworks/supervisor/api.zeek +++ b/scripts/base/frameworks/supervisor/api.zeek @@ -30,6 +30,8 @@ export { ## The PCAP file name from which the node will read/analyze packets. ## Typically used by worker nodes. 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. diff --git a/scripts/policy/frameworks/management/types.zeek b/scripts/policy/frameworks/management/types.zeek index 796c943754..f12cc1d9e5 100644 --- a/scripts/policy/frameworks/management/types.zeek +++ b/scripts/policy/frameworks/management/types.zeek @@ -60,6 +60,7 @@ export { interface: string &optional; ##< Interface to sniff cpu_affinity: int &optional; ##< CPU/core number to pin to 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. @@ -88,6 +89,8 @@ export { pid: int &optional; ## The node's Broker peering listening port, if any. p: port &optional; + ## The node's metrics port for Prometheus, if any. + metrics_port: port &optional; }; type NodeStatusVec: vector of NodeStatus;