# README

Nginx

Description

The Nginx collector picks the basic status information about nginx server from ngx_http_stub_status_module.
The following status information metrics are available:

NameTypeData sourceDescription
Activegaugengx_http_stub_status_moduleThe current number of active client connections including Waiting connections.
Acceptscounterngx_http_stub_status_moduleThe total number of accepted client connections.
Handledcounterngx_http_stub_status_moduleThe total number of handled connections.
Requestscounterngx_http_stub_status_moduleThe total number of client requests.
Readinggaugengx_http_stub_status_moduleThe current number of connections where nginx is reading the request header.
Writinggaugengx_http_stub_status_moduleThe current number of connections where nginx is writing the response back to the client.
Waitinggaugengx_http_stub_status_moduleThe current number of idle client connections waiting for a request.

Limitations

Before using the Nginx collector, you must first enable ngx_http_stub_status_module.
More details in the nginx documentation: https://nginx.org/en/docs/http/ngx_http_stub_status_module.html

Configuration

{
  "collectors": {
    "Nginx": {
      "enabled": true,
      "endpoint": "http://127.0.0.1/basic_status",
      "timeout": 5
    }
  }
}
  • "enabled"
    • true - enable collector
    • false - disable collector
  • "endpoint" - ngx_http_stub_status_module url (location)
  • "timeout" - timeout in seconds