Closed andreynovikov closed 1 year ago
celery_queue_length only works for RabbitMQ https://github.com/danihodovic/celery-exporter/issues/190
As for the other metrics - do you have a worker running?
Yes, worker is running, tasks are executed. Also in Django I have subscriptions for corresponding signals and they work well:
from celery.signals import task_received
@task_received.connect
def on_task_received(request, **kwargs):
...
I've found the problem: for some reason celery didn't process CELERY_SEND_EVENTS
. I have added direct setting to celery worker and it started sending all events.
Any chance to merge https://github.com/danihodovic/celery-exporter/pull/192 ?
Any chance to merge #192 ?
I will hopefully have time to look at it before the end of the year.
I'm using Django + Celery + Redis + django-celery-results on a single host. Everything works like a charm. I'm trying to run celery-exporter (from cli, git cloned source master branch, tried 0.4.1 as well) and get the following:
worker-heartbeat
event is successfully receivedtask-sent
event for all initiated tasks is successfully receivedtrack_queue_length
showsQueue 'celery' not found
error in debug logLLEN celery
inredis-cli
shows that queue. Celery versions are equal in Django and celery-exporter: 5.2.3. Have no idea where to look further.