Updated README for Prometheus 2.x (#1134)

This commit is contained in:
James Turnbull 2017-12-10 10:49:31 -05:00 committed by Brian Brazil
parent 6bab629590
commit 7d795d8c03
1 changed files with 11 additions and 6 deletions

View File

@ -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.