项目中用到了redis sharding , 为了能了解redis的实时性能情况 , 每次去服务器上打info命令明显不太合适, 所以推荐使用可视化的监控工具
1 . redis live -- 实时redis监控面板
可以同时监控多个redis实例 , 包括 内存使用 、分db显示的key数、客户端连接数、 命令处理数、 系统运行时间 , 以及各种直观的折线图柱状图.
缺点是使用了monitor 命令监控 , 对性能有影响 ,最好不要长时间启动 .
官网: http://www.nkrode.com/article/real-time-dashboard-for-redis
Installation
Install Dependencies
tornado pip install tornado
redis.py pip install redis
python-dateutil pip install python-dateutil
You'll also need argparse if you're running Python < 2.7:
argparse pip install argparse
Get RedisLive
Clone the repo git clone https://github.com/kumarnitin/RedisLive.git , or download the latest release
Configuration
edit redis-live.conf :
update the value of the key RedisServers to the redis instances you want to monitor. You can monitor multiple instances by appending more values to the RedisServers list.
update the value of the key RedisStatsServ