Monitor Redis with ELK (Kibana and Elasticsearch)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
config.yml.example
kibana4-dashboard.json
redelk.py
redis-kibana.png
requirements.txt

README.md

REDELK

What is it?

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

Requirements

  • python 2.7
  • virtualenv
  • pip

Install

  1. git clone this repot
  2. cd <cloned_dir> && virtualenv env && source env/bin/activate
  3. pip install -r requirements.txt
  4. Copy config.yml.example to config.yml and fill in your relevent info
  5. Run it with something like supervisor
  6. Install the optional kibana4 dashboard ( json included ) into your kibana 4 instance

Sample kibana dashboard

alt text

Sample supervisord entry

[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