Skip to content
Snippets Groups Projects
Commit 72431c60 authored by Davor Cubranic's avatar Davor Cubranic Committed by Brian Brazil
Browse files

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.
parent 7d17ecbd
No related merge requests found
......@@ -14,7 +14,7 @@ go build
```yaml
remote_write:
url: "http://localhost:1234/receive"
- url: "http://localhost:1234/receive"
```
Then start Prometheus:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment