Visualize your redis instances, analyze query patterns and spikes.
You'll also need argparse if you're running Python < 2.7:
pip install argparse
- Clone the repo
git clone https://github.com/kumarnitin/RedisLive.git, or download the latest release
- edit redis-live.conf and update the value of the key
RedisServersto the redis instances you want to monitor. You can monitor multiple instances by appending more values to the RedisServers list.
- start the monitoring script
./redis-monitor.py --duration=120duration is in seconds (see caveat)
- start the webserver
- RedisLive is now running @
- if you have a local redis instance, you can switch to a redis backed store to save RedisLive data (preferred and much faster)
- edit redis.conf provide the server and port for the redis instance you will use to store RedisLive data (this redis instance is different from the redis instances you are monitoring). Change the value of RedisStatsServer key.
- edit /src/dataprovider/dataprovider.py switch to redisprovider :
- disable line 1
#from sqliteprovider import RedisStatsProvider
- enable line 2
from redisprovider import RedisStatsProvider
- disable line 1
Caveat on monitoring redis
Currently the only hook into monitoring a redis instance is Redis MONITOR command, which streams back every command processed and reduces the throughput of the redis instance. It is recommended to run redis-monitor with --duration suitable for your redis deployment and scheduling it to run periodically as a cron job.
Have feedback, feature request or improvements you'd like to see? Drop me a note @nkrode or just fork and send a pull request :-)
RedisLive is released under the MIT license: