实时统计 nginx 状态的 lua 拓展ngx_lua_reqstatus
项目地址:https://github.com/zheng-ji/ngx_lua_reqstatus
作者:zheng-ji
ngx_lua_reqstatus
实时监控 Nginx 域名的 qps, 5xx 个数,响应时长, 其中 ganglia_conf 目录是 ganglia 监控脚本。
配置 nginx.conf

效果
查看 域名 justforfun.com 的qps,5xx个数,平均响应时长:
curl localhost:6080/?domain=justforfun.com
输出

license
MIT License.
网友评论