summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorTom F <tom@tom-fitzhenry.me.uk>2019-02-27 00:59:11 +1100
committerxeji <36407913+xeji@users.noreply.github.com>2019-02-26 14:59:11 +0100
commit9f07fa719c6538a478d0f1c096d209429205f546 (patch)
treec3ec23ab50336193440f579e2f4e37d836346994 /nixos/modules
parent5781856630d734738aae55f5bc15e71b210aeb10 (diff)
downloadnixpkgs-9f07fa719c6538a478d0f1c096d209429205f546.tar
nixpkgs-9f07fa719c6538a478d0f1c096d209429205f546.tar.gz
nixpkgs-9f07fa719c6538a478d0f1c096d209429205f546.tar.bz2
nixpkgs-9f07fa719c6538a478d0f1c096d209429205f546.tar.lz
nixpkgs-9f07fa719c6538a478d0f1c096d209429205f546.tar.xz
nixpkgs-9f07fa719c6538a478d0f1c096d209429205f546.tar.zst
nixpkgs-9f07fa719c6538a478d0f1c096d209429205f546.zip
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 ""
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/monitoring/prometheus/alertmanager.nix3
1 files changed, 2 insertions, 1 deletions
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).
         '';
       };