I am facing the issue with missing values for queue label for the Celery tasks metrics. Basically, I don't see any other value except the default one: celery
So I tried to run the exporter locally, and here is what I've found:
track_task_event only considers queue property upon receiving a task, but the queue name is not always available in this way ( I assume it's available when a queue name is passed directly to the call).
To improve lookup capabilities of the exporter, I've added another way of getting a queue name which must solve the aforementioned issue.
Hi there!
Context
I am facing the issue with missing values for
queue
label for the Celery tasks metrics. Basically, I don't see any other value except the default one:celery
So I tried to run the exporter locally, and here is what I've found:
track_task_event
only considersqueue
property upon receiving a task, but the queue name is not always available in this way ( I assume it's available when a queue name is passed directly to the call).To improve lookup capabilities of the exporter, I've added another way of getting a queue name which must solve the aforementioned issue.