From 9f07fa719c6538a478d0f1c096d209429205f546 Mon Sep 17 00:00:00 2001 From: Tom F Date: Wed, 27 Feb 2019 00:59:11 +1100 Subject: [PATCH] Document the addresses Alertmanager will listen on (#56409) https://github.com/golang/go/issues/9334 describes how net.Listen (as used by Alertmanager): * listens on 127.0.0.1 if the listenAddress is "localhost" * listens on all interfaces if the listenAddress is "" --- nixos/modules/services/monitoring/prometheus/alertmanager.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/monitoring/prometheus/alertmanager.nix b/nixos/modules/services/monitoring/prometheus/alertmanager.nix index 43b4a41eaf3..7d790b6b590 100644 --- a/nixos/modules/services/monitoring/prometheus/alertmanager.nix +++ b/nixos/modules/services/monitoring/prometheus/alertmanager.nix @@ -106,7 +106,8 @@ in { type = types.str; default = ""; description = '' - Address to listen on for the web interface and API. + Address to listen on for the web interface and API. Empty string will listen on all interfaces. + "localhost" will listen on 127.0.0.1 (but not ::1). ''; };