MioNGINX 統(tǒng)計和監(jiān)控工具
Mio是一款NGINX 統(tǒng)計和監(jiān)控工具,它短期對標的是 NGINX Plus,Mio 100% 兼容 NGINX Plus 的 API,并新增三類 summary API, 提供非常詳細的實時統(tǒng)計和監(jiān)控數(shù)據(jù)。長期目標希望通過這些數(shù)據(jù),能夠為攔截惡意訪問、流量限速限流、定位業(yè)務(wù)代碼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":[]}
評論
圖片
表情
