Skip to main content

Celery monitoring SDK — task events, worker heartbeats, beat schedules, and queue depths.

Project description

celeryradar-sdk

PyPI version Python versions License: MIT

Celery monitoring SDK for CeleryRadar. Hooks Celery's standard signals to ship task events, worker heartbeats, beat schedules, and queue depth.

CeleryRadar dashboard

What gets monitored

  • Task events — start, success, failure, retry, runtime, exception type
  • Worker heartbeats — online/offline detection per worker hostname
  • Beat schedules — fires, misses, and drift from the expected interval
  • Queue depth — Redis broker depth per queue (single-instance only; RabbitMQ, SQS, and Redis Cluster planned)

Install

Requires Python 3.9+ and Celery 5.0+.

pip install celeryradar-sdk

Use

Sign up at celeryradar.com to get your API key, then:

import celeryradar_sdk

celeryradar_sdk.connect(api_key="cr_...", app_name="myapp")

That's it. The SDK is async and non-blocking — if the ingest endpoint is slow or unreachable, your workers don't notice; events drop with a warning rather than back up your task queue.

app_name is required. If you run multiple Celery apps under one API key — even on separate Redis brokers — give each a distinct app_name. It scopes the queue-depth poller's broker-side leader lock and disambiguates colliding queue names in the dashboard (two apps that both have a queue called celery stay separate by app).

Configuration

Common options:

celeryradar_sdk.connect(
    api_key="cr_...",
    app_name="myapp",
    capture_args=False,         # don't send task args/kwargs (default True)
    capture_exceptions=False,   # don't send exception/traceback text (default True)
    worker_name="api-worker-1", # override hostname; useful in k8s/Docker
    broker_url="redis://...",   # override app.conf.broker_url for the depth poller
)

CELERYRADAR_WORKER_NAME is also read from the environment and takes precedence over worker_name=. See the configuration docs for the full reference.

How it differs from Flower

Flower is a real-time inspector and admin tool — great for browsing the current task queue and revoking tasks. CeleryRadar is the persistence layer above it: history, alerts, dashboards, and trend analysis. They don't conflict.

Documentation

Background reading: Monitoring Celery in production walks through what to watch, what Celery gives you out of the box, and how the common options (Flower, Prometheus + Grafana, Sentry, Datadog) compare.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

celeryradar_sdk-0.2.2.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

celeryradar_sdk-0.2.2-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file celeryradar_sdk-0.2.2.tar.gz.

File metadata

  • Download URL: celeryradar_sdk-0.2.2.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for celeryradar_sdk-0.2.2.tar.gz
Algorithm Hash digest
SHA256 43246ee7068b4692d97df0101e9180bdd4a733fde884360837d63f4c33b9e059
MD5 6b99ec0b10e7ec014258b0037c4e12a7
BLAKE2b-256 4ac58ca8abaa42818cadce36941c70e946bf3c2dc3ba49800f19d5f0c3b4b94b

See more details on using hashes here.

File details

Details for the file celeryradar_sdk-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for celeryradar_sdk-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 60c284062e9f703e949c090c2be6d03e447e38db82a10354e12fe9926718bb78
MD5 7126978f04a4049969bbc7b334f312d0
BLAKE2b-256 4cf91a3a1e9a7400ccfd0c44c6d0c71bf65a891d9d4aaace6e33998b97b916f1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page