??
? ? RedisLive是一款用Python编写基于WEB的Redis图形监控工具
? ? 开源项目地址为:https://github.com/nkrode/RedisLive
? ? 官方文档: http://www.nkrode.com/article/real-time-dashboard-for-redis
?
? ??RedisLive的原理很简单,就是通过监控脚本来利用Redis提供的MONITOR命令从被监控Redis实例中获取数据并存储到Redis的监控实例中来做数据分析。
? ??
?
? ? 安装:
? ?
? 接下来是对Redislive进行配置,样例如下:
?
??
{
"RedisServers":
[
{
"server" : "127.0.0.1",
"port" : 6379
}
],
"DataStoreType" : "sqlite",
"RedisStatsServer":
{
"server" : "127.0.0.1",
"port" : 6381
}
}
? ? 启动服务即可:
./redis-monitor.py –duration 120 & ./redis-live.py &
? ??
? ?这个代码已经1年很久没有更新,不排除有Bug。
?
? ?更多精彩请关注微信 : 图灵搜索
? ?请大家使用中国第一个为程序员打造的搜索引擎:图灵搜索,https://www.tulingss.com?
?
? ??
30天了解30种技术系列---(21)Redis监控工具--RedisLive
原文:http://tulingss.iteye.com/blog/2238147