nginx-http-metric-module
364 次浏览
更新于 2020-11-01 18:48

授权协议:Apache License 2.0
原作者联系方式:hongzhidao@gmail.com
功能说明:Nginx 监控指标模块。
  • 内容介绍

模块配置使用:

================= example ==================
> curl http://yourip/metric_status

{"1xx":0,"2xx":21715,"3xx":48,"4xx":94,"5xx":2,"total":21859,"avg_time":0.036,"min_time":0.001,"max_time":10.484}


================= nginx.conf ===============

metric_zone  size=10M min_time=10ms max_time=10s;
metric  on;

server {
    listen  80;

    location / {
        root  html;
    }

    location /metric_status {
	metric_status  on;
        metric  off;
    }

    location /metric_reset {
	metric_reset  on;
        metric  off;
    }
}
发表评论
  • 阿尔巴

    赞,感谢分享

    2020-11-05 18:04
    0
    回复
提交者

皮皮鲁

暂无个人介绍

  • 26

    文章

  • 19

    关注

  • 20

    粉丝

版权所有©F5 Networks,Inc.保留所有权利。京ICP备16013763号-5