Ingest Prometheus remote write data

Auth

Index Prometheus time series into metrics data streams. The request body is a Prometheus remote write 1.0 message: a protobuf WriteRequest sent with the content type application/x-protobuf, usually snappy-compressed (Content-Encoding: snappy). A message that declares another proto parameter in its content type is rejected with 415 Unsupported Media Type, so that Prometheus can fall back to remote write 1.0. Samples go to the metrics-{dataset}.prometheus-{namespace} data stream. In 9.6 and later, exemplars go to the exemplars-{dataset}.prometheus-{namespace} data stream. The data_stream_dataset and data_stream_namespace labels of a time series override the dataset and namespace from the path.

Required privileges

Index
create_doc auto_configure

Path parameters

dataset string · default: generic optional

The data stream dataset. The value is sanitized rather than rejected.

Leave it out to use /_prometheus/api/v1/write.

namespace string · default: default optional

The data stream namespace. The value is sanitized rather than rejected.

Leave it out to use /_prometheus/api/v1/write.

Request body

Type: object

Responses

200 application/json