In my environment we have a few different Redis clusters that we like to monitor. While I found other tools out there like redis-stats, I needed someting that was easy to setup and easily scalable to monitor our Redis clusters. By monitor I'm refering to output and calculations arond the INFO
command in Redis.
This script will will run forever and is ment to be controlled with something like supervisord. Below is a sample supervisor config
- python 2.7
- virtualenv
- pip
- git clone this repot
cd <cloned_dir> && virtualenv env && source env/bin/activate
pip install -r requirements.txt
- Copy
config.yml.example
toconfig.yml
and fill in your relevent info - Run it with something like supervisor
- Install the optional kibana4 dashboard ( json included ) into your kibana 4 instance
[program:redelk]
command=/opt/monitor/redis_mon/env/bin/python /opt/monitor/redis_mon/redelk.py
directory=/opt/monitor/redis_mon
autostart=true
autorestart=true
logfile=/var/log/supervisor/redelk.log