Add Telemetry::metrics_address option

This commit is contained in:
Tim Wojtulewicz 2024-06-06 18:32:56 -07:00
parent 322d223c18
commit d549e3d56a
2 changed files with 8 additions and 2 deletions

View file

@ -6,6 +6,10 @@ module Telemetry;
# to see the options without needing the rest.
export {
## Address used to make metric data available to Prometheus scrapers via
## HTTP.
const metrics_address = getenv("ZEEK_DEFAULT_LISTEN_ADDRESS") &redef;
## Port used to make metric data available to Prometheus scrapers via
## HTTP.
const metrics_port = 0/unknown &redef;