prometheus/documentation/examples/remote_storage/example_write_adapter
Davor Cubranic 72431c60d3 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.
2017-06-05 18:32:14 +01:00
..
README.md Fix 'remote_write' config example (#2807) 2017-06-05 18:32:14 +01:00
server.go Correct example name to adapter. (#2590) 2017-04-10 17:24:53 +01:00

Remote Write Adapter Example

This is a simple example of how to write a server to receive samples from the remote storage output.

To use it:

go build
./example_write_adapter

...and then add the following to your prometheus.yml:

remote_write:
  - url: "http://localhost:1234/receive"

Then start Prometheus:

./prometheus