stats-nginx-module - stats aggregation continuously.
This Nginx module is still experimental and developing.
http {
stats_format main '${remote_addr:c} $bytes_sent ${body_bytes_sent:a}';
stats_zone $http_host zone=stats:10m format=main;
server {
listen 8080;
location / {
return 200 "hello";
stats zone=stats;
}
location /echo {
stats_echo key=$http_host zone=stats;
}
location /dump {
stats_echo zone=stats clear;
}
}
}
Alex (张超) Zhang [email protected], UPYUN Inc.