Code Monkey home page Code Monkey logo

status-nginx-module's Introduction

status-nginx-module

The req status module for pure nginx. The core source file comes from Tengine, which is developed and maintained by Alibaba.

Description

This module will help monitor running status of Nginx.

  • It can provide running status information of Nginx.
  • The information is divided into different zones, and each zone is independent.
  • The status information is about connections, requests, response status codes, input and output flows, rt, and upstreams.
  • It shows all the results by default, and can be set to show part of them by specifying zones.

Compilation

git clone https://github.com/hnlq715/status-nginx-module
./configure --add-module=/path/to/status-nginx-module
make && make install

Example

http {
    http_status_zone host "$host,$server_addr:$server_port" 10M;

    server {
        location /us {
            http_status_show;
        }

        http_status host;
    }
}

When you call '/us', you will get the results like this:

localhost,127.0.0.1:80,162,6242,1,1,1,0,0,0,0,10,1,10,1
  • Line Format:
    • kv value of the variable defined by the directive 'reqstatuszone'
    • bytesintotal total number of bytes received from client
    • bytesouttotal total number of bytes sent to client
    • conn_total total number of accepted connections
    • req_total total number of processed requests
    • 2xx total number of 2xx requests
    • 3xx total number of 3xx requests
    • 4xx total number of 4xx requests
    • 5xx total number of 5xx requests
    • other total number of other requests
    • rt_total accumulation or rt
    • upstream_req total number of requests calling for upstream
    • upstream_rt accumulation or upstream rt
    • upstream_tries total number of times calling for upstream

status-nginx-module's People

Contributors

sysulq avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.