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

How to run with django

Open bolerap opened this issue 6 years ago • 5 comments

hi all, My project is running django 1.11 and celery 4.2.0 I run celery tasks on three worker with -E flag When i run celery-prometheus-exporter --enable-events --verbose It seem not run, no error no message it just silent. What wrong with me? Please take a look. Thanks screen shot 2019-01-15 at 3 33 55 pm

bolerap avatar Jan 15 '19 08:01 bolerap

Is the exporter up-and-running, can you curl http://localhost:8888/metrics? Is your broker on redis://redis:6379/0?

javabrett avatar Jan 21 '19 05:01 javabrett

Is the exporter up-and-running, can you curl http://localhost:8888/metrics?

I got this curl: (7) Failed to connect to localhost port 8888: Connection refused

Is your broker on redis://redis:6379/0?

My other celery tasks still running using redis

bolerap avatar Jan 21 '19 07:01 bolerap

Do you get any output when you run celery-prometheus-exporter --help?

zerok avatar Feb 07 '19 18:02 zerok

I've got the same issue. @zerok,celery-prometheus-exporter --help returns default help info. Running it as celery-prometheus-exporter --broker redis://192.168.2.102:6379/0 --verbose does not produce any output at all.

Upd: This probably happened due to network problems. Looks like that if the redis server is not responding, celery will try connecting with it several times before throwing an error.

AlexShein avatar Apr 24 '19 10:04 AlexShein

Hi :) Sorry for the late response! Yes, the exporter tries to connect to the broker during the startup-phase but doesn't log anything until it has succeeded there. I've added a bit more logging to the master branch that might help you debug this issue.

zerok avatar May 26 '19 10:05 zerok