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本身有性能上的影响
sudo apt-get autoremove --purge ruby*
sudo apt-get install ruby-full
gem install redis-stat
redis-stat命令参数
usage: redis-stat [HOST[:PORT] ...] [INTERVAL [COUNT]]
-a, --auth=PASSWORD 设置密码
-v, --verbose 显示更多信息
--style=STYLE 输出编码类型: unicode|ascii
--no-color 取消ANSI颜色编码
--csv=OUTPUT_CSV_FILE_PATH 以CSV格式存储结果
--es=ELASTICSEARCH_URL 把结果发送到 ElasticSearch: [http://]HOST[:PORT][/INDEX]
--server[=PORT] 运行redis-stat的web server (默认端口号:63790)
--daemon 使得redis-stat成为进程。必须使用 --server 选项
--version 显示版本号
--help 显示帮助信息
redis-stat运行命令行监控
redis-stat
redis-stat1
redis-stat110
redis-stat --verbose
redis-stat localhost:6380110
redis-stat localhost localhost:6380localhost:63815
redis-stat localhost localhost:6380110--csv=/tmp/outpu.csv --verbose
Server端运行界面
Web界面中的redis-stat
当设置–server选项之后,redis-stat会在后台启动一个嵌入式的web server(默认端口号:63790),可以让你在浏览器中监控Redis
redis-stat --server
redis-stat --verbose --server=80805
# redis-stat server can be daemonized
redis-stat --server --daemon
# Kill the daemon
killall -9redis-stat-daemon
Web端运行界面
然后在你的浏览器中输入:
http://�localhost:63790