You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
prometheus/documentation/examples/remote_storage/example_write_adapter
Bartlomiej Plotka 9198952f7c
[PRW 2.0] Merging `remote-write-2.0` feature branch to main (PRW 2.0 support + metadata in WAL) (#14395)
5 months ago
..
README.md [PRW 2.0] Merging `remote-write-2.0` feature branch to main (PRW 2.0 support + metadata in WAL) (#14395) 5 months ago
server.go [PRW 2.0] Merging `remote-write-2.0` feature branch to main (PRW 2.0 support + metadata in WAL) (#14395) 5 months ago

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 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