pranavgupta1234 / rqmonitor

Flask based more dynamic and actionable frontend dashboard for monitoring Redis Queue 👩🏿‍💻 http://python-rq.org
Apache License 2.0
186 stars 24 forks source link

Can I integrate this inside flask? #27

Open amks1 opened 3 years ago

amks1 commented 3 years ago

I want to make a route within flask to access the dashboard (mainly to use my own authentication). Do you have any documentation for this?

pranavgupta1234 commented 3 years ago

You can use rqmonitor as flask blueprint

from rqmonitor.bp import monitor_blueprint

and then can be mounted at some prefix

app.register_blueprint(monitor_blueprint, url_prefix="/rqmonitor")

with some other configurations you can get this working. More on flask blueprints here

amks1 commented 3 years ago

Thanks, I got it working from flask, haven't tried authentication yet. I noticed that in the worker's screen, there are no workers registered and it says "Loading" continuously.

image

In RQ dashboard, the worker shows correctly: image