• Stars
    star
    1,432
  • Rank 32,642 (Top 0.7 %)
  • Language
    Python
  • License
    Other
  • Created over 12 years ago
  • Updated 17 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Flask-based web front-end for monitoring RQ queues

Introduction

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

Build Status Python Support PyPI Downloads

Maturity notes

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

Installing with Docker

You can also run the dashboard inside of docker:

$ docker pull eoranged/rq-dashboard
$ docker run -p 9181:9181 eoranged/rq-dashboard

and you can then run the image. You can pass additional options using environment variables with prefix RQ_DASHBOARD_*:

- RQ_DASHBOARD_REDIS_URL=redis://<redis:6379>
- RQ_DASHBOARD_USERNAME=rq
- RQ_DASHBOARD_PASSWORD=password

See more info on how to pass environment variables in Docker documentation

Installing from PyPI

$ 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)
  -u, --redis-url TEXT            Redis URL. Can be specified multiple times.
                                  Default: redis://127.0.0.1:6379
  --poll-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.

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, url_prefix="/rq")

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

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

If you start the Flask app on the default port, you can access the dashboard at http://localhost:5000/rq. The cli.py:main entry point provides a simple working example.

Running on Heroku

Consider using third-party project rq-dashboard-on-heroku, which installs rq-dashboard from PyPI and wraps in in Gunicorn for deployment to Heroku. rq-dashboard-on-heroku is maintained indepdently.

Developing

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

Stats

More Repositories

1

vagrant-parallels

Vagrant Parallels Provider
Ruby
996
star
2

docker-machine-parallels

Parallels driver for Docker Machine https://github.com/docker/machine
Go
468
star
3

boot2docker-vagrant-box

Packer scripts to build a Vagrant-compatible boot2docker box.
Shell
105
star
4

artifactory

A Python client for Artifactory
Python
82
star
5

packer-examples

Packer Templates and examples to use with Parallels Desktop provider
HCL
28
star
6

parallels-vscode-extension

Parallels Visual Studio Code
TypeScript
26
star
7

jenkins-parallels

A Jenkins plugin to run builds in Parallels Desktop
Java
23
star
8

githooks

Git Hooks for Atlassian Bitbucket Server (formerly Stash)
Python
17
star
9

RAS-PowerShell

This repository contains sample Parallels RAS PowerShell cmdlets and tools
Rich Text Format
16
star
10

packer-plugin-parallels

Packer plugin for Parallels Builder
Go
11
star
11

prl-devops-service

Go
9
star
12

vagrant-django-example

A simple skeleton of Django application provisioned with Vagrant + Parallels Desktop
Shell
7
star
13

kitchen-policyfile-nodes

Test Kitchen provisioner based on policyfile_zero that generates searchable nodes
Ruby
6
star
14

atlassian-restrict-branch-model

Restrict Development to Branch Model for Atlassian Bitbucket Server
Java
6
star
15

prlctl-scripts

Somes useful scripts to use with Parallels command line to help in automation
Shell
4
star
16

Parallels-DaaS

This repository contains scripts and other useful tools to benefit administrators of the Parallels DaaS (Desktop-as-a-Service) solution
PowerShell
3
star
17

jenkins_cleanup

Groovy script to cleanup Jenkins workspaces
Groovy
3
star
18

joinparallels

We are hiring
2
star
19

PMM-Azure-Script

PowerShell
1
star
20

parallels-desktop-github-action

Parallels Desktop Github Actions
TypeScript
1
star
21

terraform-provider-parallels-desktop

Go
1
star