This project integrates Celery Flower monitoring with Grafana by sending metrics about your Celery queues and workers directly to Grafana. It uses Honcho to manage both the Celery Flower instance and the metrics-sending script on the same Heroku dyno.
It would be better to do this integration by using prometheus in future: https://flower.readthedocs.io/en/latest/prometheus-integration.html
- Python 3.x
- A running Grafana instance
- A configured Celery setup
- Heroku account and CLI set up
You'll need to set the following environment variables:
HEROKU_APP_DEFAULT_DOMAIN_NAME
: The default domain of your Heroku app where Celery Flower is running. (Comes from:heroku labs:enable runtime-dyno-metadata -a appname
)FLOWER_BASIC_AUTH
: Basic authentication for Flower, in the formatusername:password
.APP_ENV
: Your application's environment (e.g.,prod
).GRAPHITE_ID
: Identifier for your Graphite instance.WAIT_TIME_IN_SECONDS
: (Optional) Interval to wait before sending metrics again. Defaults to 1 minute.