prometheus/documentation/examples/remote_storage/example_receiver
Julius Volz b16371595d Add standalone remote storage bridge example
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.
2017-02-01 13:22:41 +01:00
..
README.md Add standalone remote storage bridge example 2017-02-01 13:22:41 +01:00
server.go Add standalone remote storage bridge example 2017-02-01 13:22:41 +01:00

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