Skip to content

hongzhidao/nginx-http-metric-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

================= 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;
    }
}

About

A nginx module for monitoring metrics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages