Skip to main content

Prometheus exporter

Enable the Prometheus exporter by providing PrometheusConfig.
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.
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.