mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
Add a services.json endpoint for Prometheus service discovery
This commit is contained in:
parent
5c17e43a1d
commit
a4a3a0dc03
10 changed files with 130 additions and 68 deletions
|
@ -15,8 +15,8 @@
|
|||
|
||||
redef Telemetry::metrics_endpoint_name = Cluster::node;
|
||||
|
||||
@if ( Cluster::local_node_type() == Cluster::MANAGER )
|
||||
redef Telemetry::metrics_port = 9911/tcp;
|
||||
@if ( Cluster::local_node_metrics_port() != 0/unknown )
|
||||
redef Telemetry::metrics_port = Cluster::local_node_metrics_port();
|
||||
@endif
|
||||
|
||||
@endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue