• Stars
    star
    186
  • Rank 206,540 (Top 5 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created over 4 years ago
  • Updated over 1 year ago

Reviews

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

Repository Details

Flask based more dynamic and actionable frontend dashboard for monitoring Redis Queue πŸ‘©πŸΏβ€πŸ’» http://python-rq.org


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 Features β€’ Install β€’ Docker β€’ Usage β€’ Credits β€’ Contribute β€’ Similar Tool β€’ License

screenshot

Key Features

  • Redis RQ Memory Monitoring - Implemented through Lua Scripting
    • Possibly RQ is not the only work your redis is doing and you want to keep a close eye on memory consumption of RQ namespace. Be little careful while executing it on production environment with large data as script may block your redis for some time.
  • Send Signals to remote workers
    • Using rqmonitor you can suspend/resume/delete your workers for debugging purposes which can be located on same instance running rqmonitor or some other instance in your network.
    • rqmonitor internally uses fabric for sending commands to remote workers.
    • Make sure the instance running rqmonitor have proper access to other instances running rq workers which can be achieved by properly configuring ssh, so make sure appropriate entries are added inside ssh_config.
  • All data population through DataTables:
    • Queues and Workers dashboard are rendered by client side DataTables so you get additional functionality of sorting, searching, robust pagination.
    • Jobs dashboard is rendered with server side option enabled of DataTables for easy loading of very large number of jobs.(Ajax Pipeling also planned in future)
  • More Ajax Less Reloading
    • Once after firing up the dashboard, little to no refresh is necessary, almost every refresh is done via ajax.
  • Jobs Filtering Support
    • You can choose to view a set of jobs from certain queue with certain status.
  • Global Actions
    • You can easily delete/empty multiple queues, jobs and suspend/resume workers.
  • Last but not the least is beautiful UI
  • More features coming!

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

More Repositories

1

awesome-redis-optimizations

A curated list of awesome optimizations that you can do to improve your redis deployment (both client side and server side).
27
star
2

hppoliceassistant

an app to make working of police easier
Java
4
star
3

CarRacing

An android car racing game ( 2D ) developed in Unity
C#
2
star
4

RXJava

RX Java is the example of how functional reactive programming can ease out the work and implement the concept of observables and observeres.This uses rxjava 1.x and rxandroid 1.x dependencies
Java
2
star
5

MeterReader

An android application (for tablet) for better management of reading the electricity meter by field officer.
Java
1
star
6

logstashpy

A convient python client to send log data to LogStash server with SSL/TLS support
Python
1
star
7

AlgorithmsAndDataStructures

This includes various algorithm paradigms and data structures in C++
C++
1
star
8

s3transform

Creates an abstract tunnel between two s3 buckets to do in memory transformations concurrently.
Python
1
star
9

RX-Android-Operators

This project shows various implementations of operators and their work in rxjava and rxandroid. It uses 1.x dependencies of rxjava and rxandroid
Java
1
star
10

s3lambda

Apply lambdas to s3 objects. Not related to Amazon Lambda service.
1
star
11

Assembly

This repo contains various books related to assembly language and exampler codes.
C++
1
star
12

AndroidFragments

Contains all important concepts and implementation designs around android fragments.
Java
1
star
13

pythontrie

A python library implemeting trie data structure [UNSTABLE] [DO NOT USE] [UNDER DEVELOPMENT]
Python
1
star
14

redstreams

A convenient pythonic API for processing streams in Redis
1
star
15

ds-algo

1
star
16

DebonceSearchEmitter

An implementation of debounce on observable to show dynamic searches . Uses rxjava 2.x and rxandroid 2.x dependencies
Java
1
star
17

Karna

Automated drone for object tracking and detection started under Design Practicum
Makefile
1
star
18

redjson

To efficiently store redis JSON with serialization + compression in Redis
1
star
19

RXAndroid

This project shows implementation of reactive programming including usage of rxjava, rxandroid, rx binding, rxbus, rxrelay using 1.x as well as 2.x dependencies of these libraries
Java
1
star
20

spark-sqs-connector

Adds ability to let spark stream from/to amazon SQS.
Python
1
star
21

DeepLearning-MilestonePapers

This repository contains implementation of milestone papers in Deep Learning Community
1
star
22

fastboto

Enriching Boto3 with multiprocessing (support for S3 only for now)
Python
1
star
23

awesome-go-blogs

Collection of awesome blogs from blog.golang.org
1
star