kong.nginx

    A set of functions for retrieving Nginx-specific implementation details and meta information.

    Returns the current Nginx subsystem this function is called from. Can be one of or "stream".

    • any

    Returns

    Usage

    kong.nginx.get_statistics()

    The following fields are included in the returned table:

    • - the current number of active client connections including connections_waiting.
    • connections_reading - the current number of connections where nginx is reading the request header.
    • connections_writing - the current number of connections where nginx is writing the response back to the client.
    • - the total number of accepted client connections.
    • connections_handled - the total number of handled connections. Same as connections_accepted unless some resource limits have been reached (for example, the worker_connections limit).
    • total_requests - the total number of client requests.

    Returns