mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Remove all of the ZEEK_METRICS_ environment variables
This commit is contained in:
parent
635198793d
commit
e3e806ca23
4 changed files with 13 additions and 22 deletions
|
@ -2,8 +2,7 @@
|
|||
##! the lower-level telemetry.bif functions.
|
||||
##!
|
||||
##! Metrics will be exposed through a Prometheus HTTP endpoint when
|
||||
##! enabled by setting :zeek:see:`Telemetry::metrics_port` or using the
|
||||
##! `ZEEK_METRICS_PORT` environment variable.
|
||||
##! enabled by setting :zeek:see:`Telemetry::metrics_port`.
|
||||
|
||||
@load base/misc/version
|
||||
@load base/frameworks/telemetry/options
|
||||
|
|
|
@ -7,14 +7,11 @@ module Telemetry;
|
|||
|
||||
export {
|
||||
## Port used to make metric data available to Prometheus scrapers via
|
||||
## HTTP. Zeek overrides any value provided in zeek_init or earlier at
|
||||
## startup if the environment variable ZEEK_METRICS_PORT is defined.
|
||||
## HTTP.
|
||||
const metrics_port = 0/unknown &redef;
|
||||
|
||||
## ID for the metrics exporter. This is used as the 'endpoint' label
|
||||
## value when exporting data to Prometheus. In a cluster setup, this
|
||||
## defaults to the name of the node in the cluster configuration. Zeek
|
||||
## overrides any value provided in zeek_init or earlier at startup if
|
||||
## the environment variable ZEEK_METRICS_ENDPOINT_NAME is defined.
|
||||
## defaults to the name of the node in the cluster configuration.
|
||||
const metrics_endpoint_name = "" &redef;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue