docs/Single-server-VictoriaMetrics.md: mention vmagent in high availability section

This commit is contained in:
Aliaksandr Valialkin 2020-06-03 20:15:55 +03:00
parent 937338abdf
commit f26b94cfb6
2 changed files with 14 additions and 2 deletions

View File

@ -774,7 +774,13 @@ The required resources for query path:
### High availability ### High availability
1) Install multiple VictoriaMetrics instances in distinct datacenters (availability zones). 1) Install multiple VictoriaMetrics instances in distinct datacenters (availability zones).
2) Add addresses of these instances to `remote_write` section in Prometheus config: 2) Pass addresses of these instances to [vmagent](https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/app/vmagent/README.md) via `-remoteWrite.url` command-line flag:
```bash
/path/to/vmagent -remoteWrite.url=http://<victoriametrics-addr-1>:8428/api/v1/write -remoteWrite.url=http://<victoriametrics-addr-2>:8428/api/v1/write
```
Alternatively these addresses may be passed to `remote_write` section in Prometheus config:
```yml ```yml
remote_write: remote_write:

View File

@ -774,7 +774,13 @@ The required resources for query path:
### High availability ### High availability
1) Install multiple VictoriaMetrics instances in distinct datacenters (availability zones). 1) Install multiple VictoriaMetrics instances in distinct datacenters (availability zones).
2) Add addresses of these instances to `remote_write` section in Prometheus config: 2) Pass addresses of these instances to [vmagent](https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/app/vmagent/README.md) via `-remoteWrite.url` command-line flag:
```bash
/path/to/vmagent -remoteWrite.url=http://<victoriametrics-addr-1>:8428/api/v1/write -remoteWrite.url=http://<victoriametrics-addr-2>:8428/api/v1/write
```
Alternatively these addresses may be passed to `remote_write` section in Prometheus config:
```yml ```yml
remote_write: remote_write: