﻿---
title: Prometheus remote write v1 receiver
description: The Prometheus remote write v1 receiver is an OpenTelemetry Collector component that receives metrics from Prometheus using the remote write 1.0 protocol.
url: https://www.elastic.co/elastic/docs-builder/docs/5111/reference/edot-collector/components/prometheusremotewritev1receiver
products:
  - Elastic Agent
  - Elastic Agent
  - Elastic Observability
applies_to:
  - Serverless Observability projects: Beta
  - Elastic Stack: Planned
---

# 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](https://prometheus.io/docs/specs/prw/remote_write_spec/). 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](https://www.elastic.co/elastic/docs-builder/docs/5111/reference/edot-collector/components/prometheusremotewritereceiver).

## Get started

Include the receiver in the [Collector configuration](https://www.elastic.co/elastic/docs-builder/docs/5111/reference/edot-collector/config):
```yaml
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:
```yaml
remote_write:
  - url: "http://<collector-host>:9090/api/v1/write"
```

Replace `<collector-host>` with the address where the collector is running.

## Configuration

The receiver configuration is the standard [OpenTelemetry HTTP server configuration](https://github.com/open-telemetry/opentelemetry-collector/tree/main/config/confighttp).

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

## Limitations

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.

## Resources

- [Elastic component: prometheusremotewritev1receiver](https://github.com/elastic/opentelemetry-collector-components/tree/main/receiver/prometheusremotewritev1receiver)
- [Prometheus Remote Write 1.0 specification](https://prometheus.io/docs/specs/prw/remote_write_spec/)
- [Configure metrics collection in EDOT](https://www.elastic.co/elastic/docs-builder/docs/5111/reference/edot-collector/config/configure-metrics-collection)