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

# OpenTelemetry support in Cortex XCOR

> Learn how Palo Alto Networks Cortex XCOR supports OpenTelemetry ingestion for telemetry data.

Palo Alto Networks Cortex XCOR supports OpenTelemetry ingestion for logs,
metrics, and traces. You can either use the CXDOT Collector or the upstream
OpenTelemetry Collector.

## CXDOT Collector

```mermaid actions={false} theme={null}
flowchart LR
  accTitle: CXDOT Collector flow
  accDescr: Use the CXDOT Collector and its integrations to send logs, metrics, and traces to Palo Alto Networks Cortex XCOR.
  subgraph env [Your environment]
    cxdot[CXDOT Collector]
  end
  xcor[Cortex XCOR]
  cxdot -- Logs, metrics, and traces --> xcor
```

The [Cortex XCOR Distribution of OpenTelemetry (CXDOT) Collector](https://docs-xcor.paloaltonetworks.com/ingest/xcor/collector)
is based on the OpenTelemetry Collector. It includes configurable
[integrations](https://docs-xcor.paloaltonetworks.com/ingest/xcor/integrations/collector) for collecting logs, metrics,
and traces. After integrations collect telemetry data, the CXDOT Collector
sends that data to Cortex XCOR.

## Upstream OpenTelemetry Collector

```mermaid actions={false} theme={null}
flowchart LR
  accTitle: OpenTelemetry support in Cortex XCOR
  accDescr: Use the OpenTelemetry SDK, OpenTelemetry Collector, and OTLP ingestion endpoints to send logs, metrics, and traces to Palo Alto Networks Cortex XCOR.
  subgraph env [Your environment]
    SDK[OpenTelemetry SDK]
    Coll[OpenTelemety<br>Collector]
    StatsD[OpenTelemetry<br>Collector with<br>StatsD receiver]
  end
  subgraph op [Cortex XCOR]
    OTLP[OTLP<br>ingestion<br>endpoints]
  end
  SDK -- Logs,<br>metrics,<br>and traces --> Coll
  SDK -- DogStatsD<br>metrics --> StatsD
  Coll --> OTLP
  StatsD --> OTLP
```

This ingestion process for the upstream OpenTelemetry Collector varies depending on
your environment, configuration settings, and telemetry type, but always follows the
same general path:

1. Your app is instrumented with the OpenTelemetry SDK to emit telemetry data.
2. The OpenTelemetry Collector aggregates and processes this telemetry data.
3. Cortex XCOR ingests this telemetry data through the
   OpenTelemetry protocol (OTLP) ingestion endpoints.

### OpenTelemetry support for metrics

You can use the [OpenTelemetry Collector](https://docs-xcor.paloaltonetworks.com/ingest/metrics-traces/otel) to send
metrics to Cortex XCOR. Cortex XCOR ingests these metrics through
[OpenTelemetry protocol gRPC and HTTP ingestion endpoints](https://docs-xcor.paloaltonetworks.com/ingest/metrics-traces/otel/otlp-endpoints.md).

To ingest DogStatsD metrics, add
the [StatsD receiver](https://docs-xcor.paloaltonetworks.com/ingest/metrics-traces/otel/ingest-dogstatsd.md) to the
OpenTelemetry Collector.

When Cortex XCOR ingests metrics from OpenTelemetry, it
[converts those metrics to a Prometheus-compatible format](https://docs-xcor.paloaltonetworks.com/ingest/metrics-traces/otel#conversion-from-opentelemetry-to-prometheus-compatible-metrics).

The [Live Telemetry Analyzer](https://docs-xcor.paloaltonetworks.com/investigate/analyze/telemetry-analyzer.md)
displays [special request metadata](https://docs-xcor.paloaltonetworks.com/investigate/analyze/telemetry-analyzer.md#special-request-metadata)
relevant to OpenTelemetry metrics.

### OpenTelemetry support for traces

You can use the [OpenTelemetry Collector](https://docs-xcor.paloaltonetworks.com/ingest/metrics-traces/otel) to send
traces to Cortex XCOR. Cortex XCOR ingests these traces through
[OpenTelemetry protocol gRPC and HTTP ingestion endpoints](https://docs-xcor.paloaltonetworks.com/ingest/metrics-traces/otel/otlp-endpoints.md).

You can also use the OpenTelemetry Collector to
[configure head sampling](https://docs-xcor.paloaltonetworks.com/control/shaping/sample-traces/head-sampling.md#configure-head-sampling)
for traces.

### OpenTelemetry support for logs

You can use the [OpenTelemetry Collector](https://docs-xcor.paloaltonetworks.com/ingest/metrics-traces/otel) to send
logs to Cortex XCOR.

Cortex XCOR ingests these logs through an
[OpenTelemetry protocol HTTP ingestion endpoint](https://docs-xcor.paloaltonetworks.com/ingest/logs/otel-logs.md).

### Monitor your OpenTelemetry Collector health and ingestion volume

When you configure the OpenTelemetry Collector to ingest metrics or traces, you can
[send operational metrics about the OpenTelemetry Collector](https://docs-xcor.paloaltonetworks.com/ingest/metrics-traces/otel/otel-ingest.md#send-operational-metrics-about-the-opentelemetry-collector)
to Cortex XCOR.

For upstream OpenTelemetry Collector instances, the
[OpenTelemetry Ingestion & Health](https://docs-xcor.paloaltonetworks.com/observe/dashboards/managed-dashboards.md#opentelemetry-ingestion-health)
dashboard displays health information and the amount of data each instance ingests and
processes.


## Related topics

- [Ingest telemetry data](https://docs-xcor.paloaltonetworks.com/ingest.md)
- [Integrate with Cortex XCOR](https://docs-xcor.paloaltonetworks.com/integrate.md)
- [Use OpenTelemetry protocol endpoints](https://docs-xcor.paloaltonetworks.com/ingest/logs/otel-logs.md)
- [OpenTelemetry source plugin](https://docs-xcor.paloaltonetworks.com/ingest/pipeline/plugins/source-plugins/opentelemetry.md)


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