Skip to content

bnchdan/ngx_stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ngx_stats

Demo

image

Installation

  1. Add load_module ngx_http_stats_module.so; to /etc/nginx/nginx.conf
  2. Restart /etc/init.d/nginx restart
  3. In browser go to (ip/hostname)/ngx_stats

Build from source

  1. Download nginx corresponding to your current version (Check with nginx -v)
    wget https://nginx.org/download/nginx-1.16.1.tar.gz
    tar -xzf nginx-1.16.1.tar.gz
    export NGINX_PATH=$(pwd)/nginx-1.16.1/
  2. Compile the module
    git clone https://github.com/bnchdan/ngx_stats
    cd ngx_stats
    ./build.sh
  3. The dynamic module can be found at ${NGINX_PATH}/objs/ngx_http_stats_module.so

Simple configuration

   load_module  {your_ngx_path}/objs/ngx_http_stats_module.so;
   ...
   http {
       ...
       server{
           ...
           ngx_stats on;   
           ngx_stats_admin_ip "127.0.0.1";   
           ...
       }
       ...
   }
   ...

About

Nginx real-time monitoring

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published