Skip to content

tokers/stats-nginx-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published