prometheus/documentation/examples/remote_storage/example_write_adapter
Callum Styan a4a5994f69 clarify that 1.0 will eventually be deprecated, it is not yet deprecated
Signed-off-by: Callum Styan <callumstyan@gmail.com>
2024-07-24 09:24:48 -07:00
..
README.md clarify that 1.0 will eventually be deprecated, it is not yet deprecated 2024-07-24 09:24:48 -07:00
server.go [PRW 2.0] Merging `remote-write-2.0` feature branch to main (PRW 2.0 support + metadata in WAL) (#14395) 2024-07-04 14:29:20 -07:00

README.md

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"
    protobuf_message: "io.prometheus.write.v2.Request"

or for the eventually deprecated Remote Write 1.0 message:

remote_write:
  - url: "http://localhost:1234/receive"
    protobuf_message: "prometheus.WriteRequest"

Then start Prometheus (in separate terminal):

./prometheus --enable-feature=metadata-wal-records