> ## Documentation Index
> Fetch the complete documentation index at: https://docs-xcor.paloaltonetworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Ingest metrics using Prometheus remote write

> Use the Prometheus Remote-Write 2.0 API to collect and transfer metrics to Cortex XCOR for analysis.

<Note>
  This feature isn't available to all Palo Alto Networks Cortex XCOR users and
  might not be visible in your app. For information about enabling this feature in your
  environment, contact [Cortex XCOR Support](/support).
</Note>

The [Prometheus Remote-Write 2.0 API](https://prometheus.io/docs/specs/prw/remote_write_spec_2_0/)
provides a standard interface for sending metrics data from Prometheus servers to
compatible receivers.

Palo Alto Networks Cortex XCOR supports metrics ingestion by providing Prometheus
remote write HTTP ingestion endpoints.

<Note>
  Cortex XCOR supports only Prometheus Remote-Write Protocol versions 2.0.0
  or later and Prometheus server 3.0.0 or later. All requests must be encrypted using
  TLS, compressed payloads should be smaller than 16 MB, and metric payloads
  must contain fewer than 10,000 items.
</Note>

## Remote write endpoints

The Prometheus Remote-Write 2.0 API provides a standard interface for sending metrics
data from Prometheus servers to compatible receivers. For Cortex XCOR,
the best practice is to use the
[Prometheus Agent](/ingest/metrics-traces/prometheus-remote-write/prometheus-agent)
to send metrics with batching and retries.

However, when using the [OpenTelemetry Collector](/ingest/metrics-traces/otel),
use the OTLP exporter to send metrics instead of the Prometheus Remote Write exporter.

The remote write endpoint URL is:

```text theme={null}
https://<COMPANY>.chronosphere.io/data/metrics/api/v1/prom/remote/write
```

Replace `<COMPANY>` with your tenant name as used in your Cortex XCOR
URL.

## Prometheus Agent

To get started with Prometheus remote write, configure
[Prometheus Agent](/ingest/metrics-traces/prometheus-remote-write/prometheus-agent).


## Related topics

- [Prometheus Remote Write destination plugin](/ingest/pipeline/plugins/destination-plugins/prometheus-remote-write.md)
- [Prometheus Remote Write source plugin](/ingest/pipeline/plugins/source-plugins/prometheus-remote.md)
- [Differences between the Prometheus Operator and Chronosphere Collector](/ingest/metrics-traces/collector/mappings/prometheus/operator-collector.md)
- [VictoriaMetrics destination plugin](/ingest/pipeline/plugins/destination-plugins/victoriametrics.md)
- [Ingest metric and trace data](/ingest/metrics-traces.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.