Skip to main content

Celery with your own prometheus metrics

Project description

Add you own metrics to your celery backend.

Usage:

app = Celery()
add_prometheus_option(app)

Then, using Celery 4.

export prometheus_multiproc_dir=/var/cache/my_celery_app
celery worker -A sequoia_api_notif.backend --prometheus-collector-addr 0.0.0.0:6543

This will expose the metrics on 0.0.0.0:6543 of the host than can be scrapped by prometheus.

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

celery-prometheus-0.1.0.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

celery_prometheus-0.1.0-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

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