mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
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:
parent
8eb74c04de
commit
563704a26e
2 changed files with 5 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue