MioNGINX 统计和监控工具
Mio是一款NGINX 统计和监控工具,它短期对标的是 NGINX Plus,Mio 100% 兼容 NGINX Plus 的 API,并新增三类 summary API, 提供非常详细的实时统计和监控数据。长期目标希望通过这些数据,能够为拦截恶意访问、流量限速限流、定位业务代码bug等方面,提供有用的建议。
安装 & 运行:
-
下载Mio到应用程序目录,并运行:
sudo openresty -p /opt/my-fancy-app/
或者
sudo /usr/local/openresty/nginx/sbin/nginx -p /opt/my-fancy-app/
3.测试
curl -i http://127.0.0.1/hello
HTTP/1.1 404 Not Found
curl -i http://127.0.0.1/summary
{"\/hello":{"total":1,"4xx":1,"sent":314,"request_time":0}}
curl -i http://127.0.0.1/status
{"load_timestamp":1470384389,"requests":{"current":0,"total":2,"success":1},"worker_count":2,"address":"127.0.0.1:80","ngx_lua_version":"0.10.5","server_zones":[],"nginx_version":"1.9.15","connections":{"active":1,"writing":1,"current":1,"idle":0,"reading":0},"timestamp":1470384409,"generation":0,"upstreams":[]}
评论