mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
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. |
||
---|---|---|
.. | ||
README.md | ||
server.go |
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