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
bootstrap dashboard flask frontend job-queue monitoring python redis rq task-queue workers


RQ Monitor

RQ Monitor is Flask based more actionable and dynamic web frontend for monitoring your RQ.

GitHub PyPI PyPI - Python Version GitHub issues GitHub pull requests Travis (.org) Docker Image Size (latest by date)

Key FeaturesInstallDockerUsageCreditsContributeSimilar ToolLicense

screenshot

Key Features

Install

  1. Install rqmonitor with pip
    • $ pip install rqmonitor
  2. For Docker check below.

Docker

You love docker, don't you ?

Pull rqmonitor latest docker image from dockerhub

docker pull pranavgupta1234/rqmonitor
docker run -p 8899:8899 pranavgupta1234/rqmonitor

The above command will successfully run the flask app but your redis is probably on your docker host then provide your docker host private IP for redis url via env, like:

docker run --env RQ_MONITOR_REDIS_URL=redis://<your-private-ip>:6379 -p 8899:8899 pranavgupta1234/rqmonitor

Usage

CLI options are similar to that of rq-dashboard. Download latest version of rqmonitor from pypi and fire up your command line and type rqmonitor --help.

Usage: rqmonitor [OPTIONS]

  Run the RQ Monitor Flask server.

  All configuration can be set on the command line or through environment
  variables of the form RQ_MONITOR_*. For example RQ_MONITOR_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_MONITOR_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)
  -u, --redis-url TEXT            Redis URL. Can be specified multiple times.
                                  Default: redis://127.0.0.1:6379
  --refresh-interval, --interval INTEGER
                                  Refresh interval in ms
  --extra-path TEXT               Append specified directories to sys.path
  --debug / --normal              Enter DEBUG mode
  -v, --verbose                   Enable verbose logging
  --help                          Show this message and exit.

Credits

This software is majorly dependent on the following open source packages:

Contribute


  1. Clone repo and create a new branch: $ git checkout https://github.com/pranavgupta1234/rqmonitor -b name_for_new_branch.
  2. Make changes and test
  3. Submit Pull Request with comprehensive description of changes

Similar Tool

Some snippets in rqmonitor have been used from rq-dashboard.

License

Apache 2.0