Skip to main content

Brief redis monitoring in django admin

Project description

Redis monitoring drop-in application using django admin.

Features

  • Sever statistics in the admin changelist

  • Key summary in the inspect view

  • Value introspection with pagination for lists and sorted sets

Requirements

  • Django 1.3

  • py-redis

  • Redis 2.2 or later (wich you should be using anyway)

Don’t have a django project ?

Use the quick start script ! It will run a django project on 0.0.0.0:8000 with just the redisboard installed.

With curl:

curl -L https://raw.github.com/ionelmc/django-redisboard/master/run_redisboard.py | tee run_redisboard.py | sh -e

With wget:

wget --no-check-certificate https://raw.github.com/ionelmc/django-redisboard/master/run_redisboard.py -O - | tee run_redisboard.py | sh -e

Don’t want to run on 0.0.0.0:8000 ? Run:

./run_redisboard.py ip:port

Installation guide

Install from pypi, with pip:

pip install django-redisboard

Or with setuptools:

easy_install django-redisboard

Add redisboard to INSTALLED_APPS:

INSTALLED_APPS += ("redisboard", )

After that you need to run:

manage.py syncdb

Or if you use south you can migrate this app:

manage.py migrate redisboard

Then you can add redis servers in the admin. You will see the stats in the changelist.

Redisboard has few css tweaks for the pages (they are optional). If you use staticfiles just run:

manage.py collectstatic

If you do not use django.contrib.staticfiles you must manually symlink the site-packages/redisboard/static/redisboard dir to <your media root>/redisboard.

Optional django settings

REDISBOARD_DETAIL_FILTERS

REDISBOARD_DETAIL_FILTERS - a list of regular expressions to match against the keys in the server details colum. Eg, to only show uptime and list of active databases:

REDISBOARD_DETAIL_FILTERS = ['uptime.*', 'db.*']

To show all the details just use:

.. code-block:: python

REDISBOARD_DETAIL_FILTERS = [‘.*’]

REDISBOARD_ITEMS_PER_PAGE

REDISBOARD_ITEMS_PER_PAGE - default 100. Used for paginating the items from a list or a sorted set.

Screenshots

Changelist:

https://github.com/downloads/ionelmc/django-redisboard/screenshot.png

Inspect page:

https://github.com/downloads/ionelmc/django-redisboard/redisboard-inspect.png Bitdeli badge

Project details


Download files

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

Source Distribution

django-redisboard-0.2.7.tar.gz (11.1 kB view details)

Uploaded Source

File details

Details for the file django-redisboard-0.2.7.tar.gz.

File metadata

File hashes

Hashes for django-redisboard-0.2.7.tar.gz
Algorithm Hash digest
SHA256 fee7a1459a27e658d8766f3b35257069221ec31a7393f91bb6c2d18d250b4782
MD5 4ef313a6d862d639b48be0c24280a524
BLAKE2b-256 4bb76df71967217ff2e2adac79683f0fe762df9f49dee98f21014cfc435a057f

See more details on using hashes here.

Supported by

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