mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
Fix 'remote_write' config example (#2807)
When the contents of `remote_write` are a map, as it currently is in this README, Prometheus 1.6.3 fails to start with error message: ``` Error loading config: couldn't load configuration (-config.file=/etc/prometheus/prometheus.yml): yaml: unmarshal errors:\n line 14: cannot unmarshal !!map into []*config.RemoteWriteConfig" source="main.go:159" ``` Changing it to a list of keyword: value pairs, fixes the error.
This commit is contained in:
parent
7d17ecbd48
commit
72431c60d3
|
@ -14,7 +14,7 @@ go build
|
|||
|
||||
```yaml
|
||||
remote_write:
|
||||
url: "http://localhost:1234/receive"
|
||||
- url: "http://localhost:1234/receive"
|
||||
```
|
||||
|
||||
Then start Prometheus:
|
||||
|
|
Loading…
Reference in a new issue