Alibaba Cloud Prometheus Monitoring allows you to install and configure NGINX exporters, and provides out-of-the-box dashboards. This topic describes how to install and configure NGINX exporters of the new version.
Prerequisites
Background information
- The NGINX status monitoring module ngx_http_stub_status_module collects statistics for the number of requests received and handled by the NGINX service.
- The ngx_http_stub_status_module module is installed for the NGINX exporters of the later version.
- The following table lists the metrics of NGINX exporters of the later version.
Metric Description nginx_connections_accepted The number of accepted client connections. nginx_connections_active The number of current client connections. nginx_connections_handled The number of handled client connections. nginx_connections_reading The number of read client connections. nginx_connections_waiting The number of waiting client connections. nginx_connections_writing The number of write-back client connections. nginx_http_requests_total The total number of client requests. nginx_up Specifies whether an NGINX exporter runs properly nginxexporter_build_info The build information of the NGINX exporter.
Step 1: Install the ngx_http_stub_status_module module
If the NGINX service is running on an Elastic Compute Service (ECS) instance, perform the following steps to install an NGINX exporter: