Skip to content

Commit

Permalink
Telemetry framework updates for the management framework & zeek-client
Browse files Browse the repository at this point in the history
  • Loading branch information
ckreibich committed Jul 27, 2024
1 parent c65fbac commit e32484a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
17 changes: 15 additions & 2 deletions frameworks/management.rst
Original file line number Diff line number Diff line change
Expand Up @@ -633,11 +633,11 @@ All but the worker nodes in a Zeek cluster require a listening port, and you can
specify one for each node as shown in the above configuration. If you'd rather
not pick ports, the controller can auto-enumerate ports for you, as follows:

* The :zeek:see:`Management::Controller::auto_assign_ports` Boolean, which defaults to
* The :zeek:see:`Management::Controller::auto_assign_broker_ports` Boolean, which defaults to
``T``, controls whether port auto-enumeration is active. Redefining to ``F``
disables the feature.

* :zeek:see:`Management::Controller::auto_assign_start_port` defines the starting point
* :zeek:see:`Management::Controller::auto_assign_broker_start_port` defines the starting point
for port enumeration. This defaults to ``2200/tcp``.

* Any nodes with explicitly configured ports will keep them.
Expand All @@ -655,6 +655,19 @@ not pick ports, the controller can auto-enumerate ports for you, as follows:
By retrieving the deployed configuration from the controller (see the next two
sections) you can examine which ports the controller selected.

Configuration of the Telemetry framework
----------------------------------------

By default, the framework will enable Prometheus metrics exposition ports,
including a service discovery endpoint on the mananger (refer to the
:ref:`Telemetry Framework <framework-telemetry>` for details), and
auto-assign them for you. Specifically, the controller will enumerate ports
starting from
:zeek:see:`Management::Controller::auto_assign_metrics_start_port`, which
defaults to ``9000/tcp``. Any ports you define manually will be preserved. To
disable metrics port auto-assignment, redefine
:zeek:see:`Management::Controller::auto_assign_metrics_ports` to ``F``.

Staging and deploying configurations
------------------------------------

Expand Down
6 changes: 6 additions & 0 deletions frameworks/management/full-config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ role = manager
#
# port = 1234

# You can optionally specify explicit metrics exposition ports for each
# node. If you omit these, the framework (specifically, the controller)
# will define ports for you. Only give a number; TCP is implied.
#
# metrics_port = 9090

# You can provide additional scripts that a node should run. These scripts
# must be available on the instance. Space-separate multiple scripts.
#
Expand Down

0 comments on commit e32484a

Please sign in to comment.