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)
    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

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.0.tar.gz (23.5 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.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: celeryradar_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 23.5 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.0.tar.gz
Algorithm Hash digest
SHA256 cd911df3d0affeb373ad57f564767ba59c45b1946dacdca3e7b1abd68f9398cf
MD5 09d98adc61856b4418db71c6be23cae5
BLAKE2b-256 2fc73e13fbb6a4824df41fe7c07a0cbb52c92627d7271b194fa1e073a9d04b27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for celeryradar_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8262b96e43a65ddab4238ee025bcf5033a58176fc4931edb072012846a02ceff
MD5 3f892c599aa1d386117be7c7bc5b56d4
BLAKE2b-256 3416afc1b1bb0607d400d53ab421cff3cf1887ebad85d5e2375cffef6ed9da2a

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