Giter Club home page Giter Club logo

mm-nginx's Introduction

mm-nginx

Monometric.IO nginx plugin (https://monometric.io)

Description

This plugin will query nginx via the ngx_http_stub_status_module.html and provide the following keys.

Provided metrics

Key Description
nginx.active_connections current active connections
nginx.reading The current number of connections where nginx is reading the request header.
nginx.writing The current number of connections where nginx is writing the response back to the client.
nginx.waiting The current number of idle client connections waiting for a request.
_counter.nginx.accepts The rate of of accepted client connections.
_counter.nginx.handled The rate of handled connections
_counter.nginx.requests_per_sec The rate of requests
nginx.cpu_usage_percent The sum of CPU usage by nginx processes
nginx.mem_usage_percen The sum of memory usage by nginx processes

Configuration

For the plugin to work, it needs a valid server stub URL, and this must be configured in NGINX.

Example NGINX configuration (inside server block):

location /nginx-status {
    allow 127.0.0.1;
    deny all;
    stub_status;
}

Example nginx plugin configuration:

[Env]
NGINX_URL=http://127.0.0.1/nginx-status

Additional information

Further documentation about the nginx stub module can be found on: http://nginx.org/en/docs/http/ngx_http_stub_status_module.html

mm-nginx's People

Contributors

brefre avatar

Watchers

 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.