zeek/scripts/policy/frameworks/management
Christian Kreibich 742f7fe340 Management framework: add auto-enumeration of metrics ports
This is quite redundant with the enumeration for Broker ports,
unfortunately. But the logic is subtly different: all nodes obtain a telemetry
port, while not all nodes require a Broker port, for example, and in the metrics
port assignment we also cross-check selected Broker ports. I found more unified
code actually harder to read in the end.

The logic for the two sets remains the same: from a start point, ports get
enumerated sequentially that aren't otherwise taken. These ports are assumed
available; there's nothing that checks their availability -- for now.

The default start port is 9000. I considered 9090, to align with the Prometheus
default, but counting upward from there is likely to hit trouble with the Broker
default ports (9999/9997), used by the Supervisor. Counting downward is a bit
unnatural, and shifting the Broker default ports brings subtle ordering issues.

This also changes the node ordering logic slightly since it seems more intuitive
to keep sequential ports on a given instance, instead of striping across them.
2024-07-08 23:05:24 -07:00
..
agent Management framework: propagate metrics port from agent 2024-07-08 23:05:24 -07:00
controller Management framework: add auto-enumeration of metrics ports 2024-07-08 23:05:24 -07:00
node Management framework: log node set in dispatch requests cleanly 2022-08-09 15:12:39 -07:00
supervisor Management framework: control output-to-console in Supervisor 2022-06-19 01:19:54 -07:00
__load__.zeek Management framework: set defaults for log rotation and persistent state 2022-05-26 12:55:10 -07:00
config.zeek Spelling fixes: scripts 2022-11-02 17:36:39 -04:00
log.zeek Management framework: additional logging tweaks 2022-07-12 17:53:35 -07:00
persistence.zeek Revert "Merge remote-tracking branch 'origin/topic/vern/at-if-analyze'" 2023-05-31 09:20:33 +02:00
request.zeek Spelling fixes: scripts 2022-11-02 17:36:39 -04:00
types.zeek Management framework: add metrics port in management & Supervisor node records 2024-07-08 23:05:24 -07:00
util.zeek Reorg of the cluster controller to new "Management framework" layout 2022-02-09 18:09:42 -08:00