Prometheus remote write v1 receiver
The Prometheus remote write v1 receiver receives metrics from Prometheus and compatible agents using the Prometheus remote write 1.0 protocol. It accepts writes on an HTTP endpoint and translates them into OpenTelemetry metrics.
Use this receiver when the sender uses remote write 1.0. For remote write 2.0, use the Prometheus remote write receiver.
Include the receiver in the Collector configuration:
receivers:
prometheusremotewritev1:
endpoint: 0.0.0.0:9090
The default endpoint is localhost:9090, which only accepts local connections. The example binds to 0.0.0.0:9090 so that Prometheus instances on other hosts can reach the receiver.
Point Prometheus remote_write at the receiver:
remote_write:
- url: "http://<collector-host>:9090/api/v1/write"
Replace <collector-host> with the address where the collector is running.
The receiver configuration is the standard OpenTelemetry HTTP server configuration.
| Option | Description |
|---|---|
endpoint |
Address and port to listen on for incoming remote write requests. The default is localhost:9090. |
The receiver serves POST /api/v1/write and expects Content-Type: application/x-protobuf.
Each time series becomes one gauge metric. The receiver stores labels other than __name__ as data point attributes. It does not set resource attributes and does not preserve Prometheus metric type, unit, or help text from remote write 1.0 metadata.