Skip to main content

rq-dashboard is a general purpose, lightweight, web interface to monitor your RQ queues, jobs, and workers in realtime.

Project description

rq-dashboard is a general purpose, lightweight, Flask-based web front-end to monitor your RQ queues, jobs, and workers in realtime.

Can I Use Python 3?

It looks like this

image1 image2

Installing

$ pip install rq-dashboard

Running the dashboard

Run the dashboard standalone, like this:

$ rq-dashboard
* Running on http://127.0.0.1:9181/
...
$ rq-dashboard --help
Usage: rq-dashboard [OPTIONS]

  Run the RQ Dashboard Flask server.

  All configuration can be set on the command line or through environment
  variables of the form RQ_DASHBOARD_*. For example RQ_DASHBOARD_USERNAME.

  A subset of the configuration (the configuration parameters used by the
  underlying flask blueprint) can also be provided in a Python module
  referenced using --config, or with a .cfg file referenced by the
  RQ_DASHBOARD_SETTINGS environment variable.

Options:
  -b, --bind TEXT               IP or hostname on which to bind HTTP server
  -p, --port INTEGER            Port on which to bind HTTP server
  --url-prefix TEXT             URL prefix e.g. for use behind a reverse proxy
  --username TEXT               HTTP Basic Auth username (not used if not set)
  --password TEXT               HTTP Basic Auth password
  -c, --config TEXT             Configuration file (Python module on search
                                path)
  -H, --redis-host TEXT         IP address or hostname of Redis server
  -P, --redis-port INTEGER      Port of Redis server
  --redis-password TEXT         Password for Redis server
  -D, --redis-database INTEGER  Database of Redis server
  -u, --redis-url TEXT          Redis URL connection (overrides other
                                individual settings)
  --interval INTEGER            Refresh interval in ms
  --help                        Show this message and exit.

Integrating the dashboard in your Flask app

The dashboard can be integrated in to your own Flask app by accessing the blueprint directly in the normal way, e.g.:

from flask import Flask
import rq_dashboard

app = Flask(__name__)
app.config.from_object(rq_dashboard.default_settings)
app.register_blueprint(rq_dashboard.blueprint)

@app.route("/")
def hello():
    return "Hello World!"

if __name__ == "__main__":
    app.run()

The cli.py:main entry point provides a simple working example.

Developing

We use piptools to keep our development dependencies up to date

$ pip install --upgrade pip
$ pip install git+https://github.com/nvie/pip-tools.git@future

Now make changes to the requirements.in file, and resolve all the 2nd-level dependencies into requirements.txt like so:

$ pip-compile --annotate requirements.in

Develop in a virtualenv and make sure you have all the necessary build time (and run time) dependencies with

$ pip install -r requirements.txt

Develop in the normal way with

$ python setup.py develop

Then use Fabric to perform various development tasks. For example, to tag, build and upload to testpypi

$ git tag 0.3.5   # no 'v' prefix or anything
$ fab build
$ fab upload

This requires write access to both the GitHub repo and to the PyPI test site.

See fab -l for more options and fab -d <subcommand> for details.

Maturity notes

The RQ dashboard is currently being developed and is in beta stage.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rq-dashboard-0.3.7.tar.gz (93.2 kB view details)

Uploaded Source

Built Distribution

rq_dashboard-0.3.7-py2.py3-none-any.whl (99.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file rq-dashboard-0.3.7.tar.gz.

File metadata

File hashes

Hashes for rq-dashboard-0.3.7.tar.gz
Algorithm Hash digest
SHA256 daa8c5929125a8b4591c012aed200999362945cee7df8f131eabd867dc60300b
MD5 e5d9d3d4c3a6b8e3496fb83a627718fb
BLAKE2b-256 7a64f12a4b2c8bc35e3ce7d97b6d12a78d1e13c44bbc4bccd3e889e19b4a9baf

See more details on using hashes here.

File details

Details for the file rq_dashboard-0.3.7-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for rq_dashboard-0.3.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e58929edee61634701b0eaedb3b585edf7a6b77074c1d76f4496eef770eaae16
MD5 4bde1fb144137180fa4b639fffff2f09
BLAKE2b-256 e953aa00ad448f5f45483ff61b67894bf605a744e4e4958008c7b27d3a10863b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page