Metadata-Version: 2.1
Name: celery-prometheus
Version: 0.2.0
Summary: Celery with your own prometheus metrics
License: BSD-Derived
Author: Guillaume Gauvrit
Author-email: guillaume@gandi.net
Requires-Python: >=3.7,<4.0
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: celery (>=4)
Description-Content-Type: text/x-rst

Celery Prometheus
=================

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.
