README.md: explain how to configure HA setup for Prometheus HA pairs

This commit is contained in:
Aliaksandr Valialkin 2019-06-29 19:54:46 +03:00
parent a41955863a
commit ca74e29458

View File

@ -413,7 +413,7 @@ Rough estimation of the required resources:
### High availability
1) Install multiple VictoriaMetrics instances in distinct datacenters.
1) Install multiple VictoriaMetrics instances in distinct datacenters (availability zones).
2) Add addresses of these instances to `remote_write` section in Prometheus config:
```yml
@ -438,6 +438,10 @@ kill -HUP `pidof prometheus`
6) Set up Prometheus datasource in Grafana that points to Promxy.
If you have Prometheus HA pairs with replicas `r1` and `r2` in each pair, then configure each `r1`
to write data to `<victoriametrics-addr-1`, while each `r2` should write data to `victoriametrics-addr-2`.
### Multiple retentions
Just start multiple VictoriaMetrics instances with distinct values for the following flags: