danihodovic / celery-exporter

A Prometheus exporter for Celery metrics
MIT License
431 stars 94 forks source link

Missing a queue name upon receiving a task event #335

Open TheLazzziest opened 3 hours ago

TheLazzziest commented 3 hours ago

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 image

So I tried to run the exporter locally, and here is what I've found:

To improve lookup capabilities of the exporter, I've added another way of getting a queue name which must solve the aforementioned issue.

danihodovic commented 2 hours ago

Can you add a test?