hibiken / asynqmon

Web UI for Asynq task queue
MIT License
609 stars 133 forks source link

Support sentinel redis #235

Closed linhbkhn95 closed 2 years ago

linhbkhn95 commented 2 years ago

Thanks everyone about lib asynq. So, Currently, I use Redis sentinel for storage tasks, I wanna view stats on asynqmon. However, I have never seen this lib asynqmon tell about integrating with Redis sentinel. Please support me. or I can contribute for this issue if it has not. Thanks all,

hibiken commented 2 years ago

@linhbkhn95 Thank you for opening this issue!

You should be able to provide the --redis-url flag with the format:

redis-sentinel://[:password@]host1[:port][,host2:[:port]][,hostN:[:port]][?master=masterName]

Let me know if that doesn't work for you!

I'll update the documentation so that others don't come across this same issue.

linhbkhn95 commented 2 years ago

many thanks @hibiken

linhbkhn95 commented 2 years ago

I try to test, So I can not run app, please help me :(

piupuer commented 2 years ago

@linhbkhn95 Thank you for opening this issue!

You should be able to provide the --redis-url flag with the format:

redis-sentinel://[:password@]host1[:port][,host2:[:port]][,hostN:[:port]][?master=masterName]

Let me know if that doesn't work for you!

I'll update the documentation so that others don't come across this same issue.

I add it in docker container, get error log: redis: invalid URL scheme: redis-sentinel and I saw the source code, use redis.ParseURL, maybe u can use asynq.ParseRedisURI please fix it, thanks

linhbkhn95 commented 2 years ago

@hibiken I have a PR to fix this problem at https://github.com/hibiken/asynqmon/pull/240 @piupuer you can use my docker customize at https://hub.docker.com/repository/docker/linhbkhn95/asynqmon/tags, It will support Redis sentinels, currently my project need it for view tasks many thanks