diff options
author | makefu <github@syntax-fehler.de> | 2019-10-15 14:08:00 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2019-10-15 14:08:00 +0200 |
commit | 7535bc7457cb4cec27420d13570994d3badd2b3d (patch) | |
tree | 83b16677f78308bbab072531a4946cd87a01f749 /krebs/2configs/shack/prometheus/server.nix | |
parent | 93a3e61f0c907e4f7d5c1d11cdba995c77c2e7ce (diff) |
shack/prometheus: use alertmanagers instead of alertmanagerURL
Diffstat (limited to 'krebs/2configs/shack/prometheus/server.nix')
-rw-r--r-- | krebs/2configs/shack/prometheus/server.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/krebs/2configs/shack/prometheus/server.nix b/krebs/2configs/shack/prometheus/server.nix index 12f757e89..7f6f38610 100644 --- a/krebs/2configs/shack/prometheus/server.nix +++ b/krebs/2configs/shack/prometheus/server.nix @@ -28,7 +28,6 @@ "-storage.local.index-cache-size.label-name-to-label-values 2097152" "-storage.local.index-cache-size.label-pair-to-fingerprints 41943040" ]; - alertmanagerURL = [ "http://localhost:9093" ]; rules = [ '' ALERT node_down @@ -161,6 +160,12 @@ ]; } ]; + alertmanagers = [ + { scheme = "http"; + path_prefix = "/"; + static_configs = [ { targets = [ "localhost:9093" ]; } ]; + } + ]; alertmanager = { enable = true; listenAddress = "0.0.0.0"; |