celery-exporter icon indicating copy to clipboard operation
celery-exporter copied to clipboard

celery_worker_up reporting 1 for turned off workers

Open janjaros opened this issue 3 years ago • 3 comments

Hi, has anyone noticed when scaling up/down the celery workers (pods) that the metric celery_worker_up just keeps rising and reports all previous workers as running? When I try to run celery -A proj inspect stats it returns the correct amount of workers. Looking at the code I dont see anything weird.

Thanks a lot for help

janjaros avatar Jul 01 '22 15:07 janjaros

I haven't scaled workers up or down, but it may be related to this https://github.com/danihodovic/celery-exporter/pull/120

If you can think of a solution fork the project, build a docker image and try it out. If it works submit a pull-request.

danihodovic avatar Jul 01 '22 22:07 danihodovic

I will try to find time to set up a test env and find the issue :-)

janjaros avatar Jul 07 '22 09:07 janjaros

Might be resolved with https://github.com/danihodovic/celery-exporter/pull/120

danihodovic avatar Jul 07 '22 12:07 danihodovic