mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-14 01:24:04 -08:00
3141a6b36b
* Compress remote storage requests and responses with unframed/raw snappy, for compatibility with other languages. * Remove backwards compatibility code from remote_storage_adapter, update example_write_adapter * Add /documentation/examples/remote_storage/example_write_adapter/example_writer_adapter to .gitignore |
||
---|---|---|
.. | ||
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