mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
19 lines
646 B
Text
19 lines
646 B
Text
##! In a cluster configuration, open the port number for metrics
|
|
##! from the cluster node configuration for exporting data to
|
|
##! Prometheus.
|
|
##!
|
|
##! The manager node will also provide a ``/services.json`` endpoint
|
|
##! for the HTTP Service Discovery system in Prometheus to use for
|
|
##! configuration. This endpoint will include information for all of
|
|
##! the other nodes in the cluster.
|
|
@load base/frameworks/cluster
|
|
|
|
@if ( Cluster::is_enabled() )
|
|
|
|
redef Telemetry::metrics_endpoint_name = Cluster::node;
|
|
|
|
@if ( Cluster::local_node_metrics_port() != 0/unknown )
|
|
redef Telemetry::metrics_port = Cluster::local_node_metrics_port();
|
|
@endif
|
|
|
|
@endif
|