Flower: Redis broker monitoring

Created on 6 Aug 2013  Â·  12Comments  Â·  Source: mher/flower

i have trouble monitoring redis broker. everything else work fine except the broker monitor listing in ui.

i am using the following versions - "celery (3.0.21) celery-with-redis (3.0) flower (0.5.2) redis (2.7.6)".

i am using the following params to launch - "flower --port=5555 --address=127.0.0.1 --inspect_timeout=10000 --broker=redis://:passwd@redis-host:6379/0 --persistent=True".

am i missing something here?.

Most helpful comment

@alexbain --broker_api option should be used with --broker

flower --broker=redis://localhost:6379/0 --broker_api=redis://localhost:6379/0

All 12 comments

Can you try --broker_api=redis://:passwd@redis-host:6379/0 ?

thanks but while giving it a try again i could notice an error message "[E 130807 01:09:10 state:101] Failed to inspect the broker: operation not permitted" on stdout. any idea why it's failing on the call - broker.queues(self.active_queue_names). the redis server version i am using is 2.2.12.

if i supply a wrong password to --broker it throws an error "[E 130807 02:25:33 state:128] Failed to inspect workers: 'invalid password', trying again in 2 seconds" but where as in --broker_api it's throwing an error like "Failed to inspect the broker: operation not permitted". fyi - i have timeout set to 0 in redis conf. i guess it's something to do with --broker_api auth.

I wanted to chime in and say I'm experiencing something similar myself. I have Celery and Flower running successfully (using Redis as a broker) but the Broker tab in Flower does not show any Redis data.

I tried using the --broker_api parameter instead of just --broker but, upon booting, it seemed to ignore the parameter and instead tried connecting to a default broker, not the Redis URL I provided.

Any ideas on how to troubleshoot? Happy to provide additional information if that's helpful..

Hi,

I add the same problem (broker tab completely empty).
I use celery 3.0.22, flower 0.5.2, redis 2.6.14 on OSX and on Ubuntu 12.04LTS.
Using --broker_api=… as @mher sugested made at least my queues appear.

But only the Name and Messages columns get correct content. All other (Unacked/Ready/Consumers/Idle since) have only N/A.

Any guidance on how to get the other data, or is it simply the backend that is not implemented ?

regards,

@Karmak23 Unacked/Ready/Consumers/Idle since fields are available only for RabbitMQ. Redis doesn't provide such information.

OK, I came to this conclusion but wasn't sure. Thanks for the confirmation.

Maybe it should hide those fields if not available

@alexbain --broker_api option should be used with --broker

flower --broker=redis://localhost:6379/0 --broker_api=redis://localhost:6379/0

@navinsylvester @alexbain celery/kombu#252 should fix the problem

@mher Thanks for the fix.

Thanks @Mher - I'll let you know if I'm still having the issue.

Was this page helpful?
0 / 5 - 0 ratings