shack/prometheus: use alertmanagers instead of alertmanagerURL

This commit is contained in:
makefu 2019-10-15 14:08:00 +02:00
parent 93a3e61f0c
commit 7535bc7457
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
1 changed files with 6 additions and 1 deletions

View File

@ -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";