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.
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
| 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”.
The following status information is provided:
Active connectionsWaiting connections. acceptshandledaccepts unless some resource limits have been reached (for example, the worker_connections limit). requestsReadingWritingWaiting The ngx_http_stub_status_module module supports the following embedded variables (1.3.14):
$connections_activeActive connections value; $connections_readingReading value; $connections_writingWriting value; $connections_waitingWaiting value.
© 2002-2019 Igor Sysoev
© 2011-2019 Nginx, Inc.
Licensed under the BSD License.
https://nginx.org/en/docs/http/ngx_http_stub_status_module.html