tokers / stats-nginx-module

A Nginx module for the flexible stats accumulation

Repository from Github https://github.comtokers/stats-nginx-moduleRepository from Github https://github.comtokers/stats-nginx-module

Name

stats-nginx-module - stats aggregation continuously.

Status

This Nginx module is still experimental and developing.

Synopsis

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

Author

Alex (张超) Zhang zchao1995@gmail.com, UPYUN Inc.

About

A Nginx module for the flexible stats accumulation


Languages

Language:C 97.0%Language:Shell 1.7%Language:Perl 1.2%Language:HTML 0.2%