mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 13:44:05 -08:00
b16371595d
In preparation for removing specific remote storage implementations, this offers an example of how to achieve the same in a separate process. Rather than having three separate bridges for OpenTSDB, InfluxDB, and Graphite, I decided to support all in one binary. For now, this is in the example documenation directory, but perhaps we will want to make a first-class project / repository out of it. |
||
---|---|---|
.. | ||
README.md | ||
server.go |
Generic Remote Storage 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_receiver
...and then add the following to your prometheus.yml
:
remote_write:
url: "http://localhost:1234/receive"
Then start Prometheus:
./prometheus