Nginx Receiver
contrib
Maintainers: @colelaven, @ishleenk17
Source: opentelemetry-collector-contrib
Supported Telemetry
Overview
Configuration
NGINX Module
You must configure NGINX to expose status information by editing the NGINX configuration. Please see ngx_http_stub_status_module for a guide to configuring the NGINX stats modulengx_http_stub_status_module.
Receiver Config
The following settings are required:endpoint(default:http://localhost:80/status): The URL of the NGINX status endpoint
-
collection_interval(default =10s): This receiver collects metrics on an interval. This value must be a string readable by Golang’s time.ParseDuration. Valid time units arens,us(orµs),ms,s,m,h. -
initial_delay(default =1s): defines how long this receiver waits before starting.
Metrics
| Metric Name | Description | Unit | Type | Attributes |
|---|---|---|---|---|
✅ nginx.connections_accepted | The total number of accepted client connections | connections | Counter | |
✅ nginx.connections_current | The current number of nginx connections by state | connections | UpDownCounter | state |
✅ nginx.connections_handled | The total number of handled connections. Generally, the parameter value is the same as nginx.connections_accepted unless some resource limits have been reached (for example, the worker_connections limit). | connections | Counter | |
✅ nginx.requests | Total number of requests made to the server since it started | requests | Counter |
Attributes
| Attribute Name | Description | Type | Values |
|---|---|---|---|
state | The state of a connection | string | active, reading, writing, waiting |
Configuration
Example Configuration
Last generated: 2026-04-13