Celery Exporter is a Prometheus metrics exporter for Celery 4, written in Clojure.
Here the list of exposed metrics:
celery_tasks_totalexposes the number of tasks currently known to the queue labeled byinstance,name,queueandstate.celery_tasks_runtime_millistracks the number of milliseconds tasks take until completed as histogram labeled byname,queueandinstance.celery_time_spent_in_queue_millisexposes a histogram of task latency, i.e. the time until tasks are picked up by a worker from when they are published to the queue.
lein clean
lein uberjarjava -jar target/uberjar/celery-prometheus-exporter.jarcurl "localhost:8888/scrape?target=amqp://username:password@hostname:port/vhost"