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

# Observability

> Enable Prometheus and OpenTelemetry metrics for Celery Root.

## Prometheus exporter

Enable the Prometheus exporter by providing `PrometheusConfig`.

```python theme={null}
from celery_root import CeleryRootConfig, PrometheusConfig

config = CeleryRootConfig(
    prometheus=PrometheusConfig(port=8001, prometheus_path="/metrics"),
)
```

The exporter runs in a dedicated process and exposes metrics at:

```
http://<host>:<port><prometheus_path>
```

If you need Flower-compatible naming, enable `flower_comatibility` in the config.

## OpenTelemetry exporter

Enable OTLP export by providing `OpenTelemetryConfig`.

```python theme={null}
from celery_root import CeleryRootConfig, OpenTelemetryConfig

config = CeleryRootConfig(
    open_telemetry=OpenTelemetryConfig(endpoint="http://localhost:4317"),
)
```

The OpenTelemetry exporter uses OTLP over gRPC and runs in a dedicated process.
