ngx_http_stub_status_module
少于1分钟
Module ngx_http_stub_status_module
https://nginx.org/en/docs/http/ngx_http_stub_status_module.html
The ngx_http_stub_status_module module provides access to basic status information.
This module is not built by default, it should be enabled with the --with-http_stub_status_module configuration parameter.
Example Configuration
location = /basic_status {
stub_status;
}
This configuration creates a simple web page with basic status data which may look like as follows:
Active connections: 291
server accepts handled requests
16630948 16630948 31070465
Reading: 6 Writing: 179 Waiting: 106
Directives
stub_status
Syntax: stub_status;
Default: —
Context: server, location
The basic status information will be accessible from the surrounding location.
In versions prior to 1.7.5, the directive syntax required an arbitrary argument, for example, “stub_status on”.
Data
The following status information is provided:
Active connectionsThe current number of active client connections including
Waitingconnections.acceptsThe total number of accepted client connections.
handledThe total number of handled connections. Generally, the parameter value is the same as
acceptsunless some resource limits have been reached (for example, the worker_connections limit).requestsThe total number of client requests.
ReadingThe current number of connections where nginx is reading the request header.
WritingThe current number of connections where nginx is writing the response back to the client.
WaitingThe current number of idle client connections waiting for a request.
Embedded Variables
The ngx_http_stub_status_module module supports the following embedded variables (1.3.14):
$connections_activesame as the
Active connectionsvalue;$connections_readingsame as the
Readingvalue;$connections_writingsame as the
Writingvalue;$connections_waitingsame as the
Waitingvalue.