From 7d795d8c0321394a57a4c3892b562cb57d87624c Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Sun, 10 Dec 2017 10:49:31 -0500 Subject: [PATCH] Updated README for Prometheus 2.x (#1134) --- README.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index eeaf451a..67e33ac9 100644 --- a/README.md +++ b/README.md @@ -309,13 +309,18 @@ Procfile within this repository. goreman start -To point your prometheus instance to multiple Alertmanagers use the -`-alertmanager.url` parameter. It allows passing in a comma separated list. -Start your prometheus like this, for example: +To point your Prometheus 1.4, or later, instance to multiple Alertmanagers, configure them +in your `prometheus.yml` configuration file, for example: - ./prometheus -config.file=prometheus.yml -alertmanager.url http://localhost:9095,http://localhost:9094,http://localhost:9093 - -> Note: make sure to have a valid `prometheus.yml` in your current directory +```yaml +alerting: + alertmanagers: + - static_configs: + - targets: + - alertmanager1:9093 + - alertmanager2:9093 + - alertmanager3:9093 +``` > Important: Do not load balance traffic between Prometheus and its Alertmanagers, but instead point Prometheus to a list of all Alertmanagers. The Alertmanager implementation expects all alerts to be sent to all Alertmanagers to ensure high availability.