Redis监控工具—Redis-stat、RedisLive
2016-04-09 13:27
936 查看
Redis-stat(Ruby)和Redis Live(python)是两款Redis监控工具,下面将介绍如何安装部署这两个工具,监控Redis运行情况
[Plain Text] 纯文本查看 复制代码
?
Redis 安装
Redis安装请参照:Redis安装与配置
Redis-stat 安装部署
redis-stat is a simple Redis monitoring tool written in Ruby.
It is based on INFO command of Redis, and thus generally won’t affect the performance of the Redis instance unlike the other monitoring tools based on MONITOR command.
redis-stat allows you to monitor Redis instances
either with vmstat-like output from the terminal
or with the dashboard page served by its embedded web server.
通常来说,不会像基于MONITOR命令的监控工具一样,对Redis本身有性能上的影响
Gitbuh地址
卸载原有Ruby
[Shell] 纯文本查看 复制代码
?
安装Ruby
[Shell] 纯文本查看 复制代码
?
安装Redis-stat
[Shell] 纯文本查看 复制代码
?
基本使用
redis-stat命令参数
[Plain Text] 纯文本查看 复制代码
?
redis-stat运行命令行监控
[] 纯文本查看 复制代码
?
Server端运行界面
Web界面中的redis-stat
当设置–server选项之后,redis-stat会在后台启动一个嵌入式的web server(默认端口号:63790),可以让你在浏览器中监控Redis
[Shell] 纯文本查看 复制代码
?
Web端运行界面
然后在你的浏览器中输入:
[Plain Text] 纯文本查看 复制代码
?
RedisLive 安装部署
Redis Live is a dashboard application with a number of useful widgets. At it’s heart is a monitoring script that periodically issues INFO and MONITOR command to the redis instances and stores the data for analytics.
长时间运行对Redis性能有所影响
Gitbuh地址
Real time dashboard for redis
安装运行依赖
tornado
[Shell] 纯文本查看 复制代码
?
redis.py
[Shell] 纯文本查看 复制代码
?
python-dateutil
[Shell] 纯文本查看 复制代码
?
下载RedisLive
[Shell] 纯文本查看 复制代码
?
conf配置
进入src目录
[Shell] 纯文本查看 复制代码
?
[Shell] 纯文本查看 复制代码
?
[Plain Text] 纯文本查看 复制代码
?
其中RedisServers为你要监控的redis实例,可以添加多个,RedisStatsServer是存储RedisLive监控数据的实例,如果redis有密码,可以在实例配置中加入password选项;如果没有存储RedisLive数据的实例,需要将DataStoreType改成”DataStoreType” : “sqlite”这种设置
启动RedisLive
启动监控脚本,监控120秒,duration参数是以秒为单位
[Shell] 纯文本查看 复制代码
?
启动webserver。
RedisLive使用tornado作为web服务器,所以不需要单独安装服务器
Tornado web server 是使用Python编写出來的一个极轻量级、高可伸缩性和非阻塞IO的Web服务器软件
[Shell] 纯文本查看 复制代码
?
Web运行界面
然后在你的浏览器中输入:
[Plain Text] 纯文本查看 复制代码
?
http://www.aboutyun.com/forum.php?mod=viewthread&tid=17907
[Plain Text] 纯文本查看 复制代码
?
Redis安装请参照:Redis安装与配置
Redis-stat 安装部署
redis-stat is a simple Redis monitoring tool written in Ruby.
It is based on INFO command of Redis, and thus generally won’t affect the performance of the Redis instance unlike the other monitoring tools based on MONITOR command.
redis-stat allows you to monitor Redis instances
either with vmstat-like output from the terminal
or with the dashboard page served by its embedded web server.
通常来说,不会像基于MONITOR命令的监控工具一样,对Redis本身有性能上的影响
Gitbuh地址
卸载原有Ruby
[Shell] 纯文本查看 复制代码
?
[Shell] 纯文本查看 复制代码
?
[Shell] 纯文本查看 复制代码
?
redis-stat命令参数
[Plain Text] 纯文本查看 复制代码
?
[] 纯文本查看 复制代码
?
Web界面中的redis-stat
当设置–server选项之后,redis-stat会在后台启动一个嵌入式的web server(默认端口号:63790),可以让你在浏览器中监控Redis
[Shell] 纯文本查看 复制代码
?
然后在你的浏览器中输入:
[Plain Text] 纯文本查看 复制代码
?
RedisLive 安装部署
Redis Live is a dashboard application with a number of useful widgets. At it’s heart is a monitoring script that periodically issues INFO and MONITOR command to the redis instances and stores the data for analytics.
长时间运行对Redis性能有所影响
Gitbuh地址
Real time dashboard for redis
安装运行依赖
tornado
[Shell] 纯文本查看 复制代码
?
[Shell] 纯文本查看 复制代码
?
[Shell] 纯文本查看 复制代码
?
[Shell] 纯文本查看 复制代码
?
进入src目录
[Shell] 纯文本查看 复制代码
?
?
?
启动RedisLive
启动监控脚本,监控120秒,duration参数是以秒为单位
[Shell] 纯文本查看 复制代码
?
RedisLive使用tornado作为web服务器,所以不需要单独安装服务器
Tornado web server 是使用Python编写出來的一个极轻量级、高可伸缩性和非阻塞IO的Web服务器软件
[Shell] 纯文本查看 复制代码
?
然后在你的浏览器中输入:
[Plain Text] 纯文本查看 复制代码
?
http://www.aboutyun.com/forum.php?mod=viewthread&tid=17907
相关文章推荐
- Redis可以做哪些事儿?
- RedisTemplate设计理解
- redis
- 如何阅读 Redis 源码
- session放入缓存(redis)、DB
- redis参数优化
- 基于Redis的作业执行设计总结
- java连接Redis
- Could not get a resource from the pool
- 生产环境下Redis主备配置(持久化)
- 首页广告的Redis实现
- PHP用redis实现多进程队列
- Redis-cli命令最新总结
- 亲密接触Redis-第一天
- Redis使用介绍
- Redis常用命令速查 <第二篇>
- redis主备哨兵---总结
- ELK配置之通过redis进行架构扩展
- redis例子
- redis简介