Skip to main content
POST
/
api
/
v1
/
write
Remote write
curl --request POST \
  --url http://localhost:9090/api/v1/write \
  --header 'Content-Encoding: <content-encoding>' \
  --header 'Content-Type: <content-type>' \
  --data '"<string>"'
{
  "status": "error",
  "errorType": "bad_data",
  "error": "<string>"
}

Headers

Content-Type
enum<string>
required

Must be application/x-protobuf.

Available options:
application/x-protobuf
Content-Encoding
enum<string>
required

Must be snappy.

Available options:
snappy

Body

application/x-protobuf

Snappy-compressed protobuf WriteRequest message. The protobuf schema is defined by the Prometheus remote write specification.

Response

Samples ingested successfully (empty body).