What is NGINXPlus?
NGINXPLus is an open source web server and load balancer. It is an enterprise-grade version of the popular open source NGINX web server, with additional features for scalability, performance, and monitoring. NGINXPLus includes features such as load balancing, content caching, and HTTP/2 support, and is suitable for applications of any size. NGINXPLus is highly customizable and can be used to deploy web applications in a variety of environments.
Monitoring NGINXPlus with Netdata
The prerequisites for monitoring NGINXPlus with Netdata are to have NGINXPlus and Netdata installed on your system.
Netdata auto discovers hundreds of services, and for those it doesn’t, turning on manual discovery is a one line configuration. For more information on configuring Netdata for NGINXPlus monitoring please read the collector documentation.
You should now see the NGINXPlus section on the Overview tab in Netdata Cloud already populated with charts about all the metrics you care about.
Netdata has a public demo space (no login required) where you can explore different monitoring use-cases and get a feel for Netdata.
What NGINXPlus metrics are important to monitor?
The metrics that Netdata collects are organized into subsections within the nginxplus section for easier navigation. Each metric is represented by a composite chart that aggregates the data across multiple nodes/instances etc.
Below, you can find a brief description of the NGINXPlus metrics being collected and visualised on Netdata:
client_connections_rate
- Accepted and dropped (not handled) connections. A connection is considered dropped if the worker process is unable to get a connection for the request by establishing a new connection or reusing an open one.
client_connections_count
- The current number of client connections. A connection is considered idle if there are currently no active requests.
ssl_handshakes_rate
- Successful and failed SSL handshakes.
ssl_session_reuses_rate
- The number of session reuses during SSL handshake.
http_requests_rate
- The number of HTTP requests received from clients.
http_requests_count
- The current number of client requests.
http_server_zone_requests_rate
- The number of requests to the HTTP Server Zone.
http_server_zone_responses_per_code_class_rate
- The number of responses from the HTTP Server Zone. Responses grouped by HTTP status code class.
http_server_zone_traffic_rate
- The amount of data transferred to and from the HTTP Server Zone.
http_server_zone_requests_processing_count
- The number of client requests that are currently being processed by the HTTP Server Zone.
http_server_zone_requests_discarded_rate
- The number of requests to the HTTP Server Zone completed without sending a response.
http_location_zone_requests_rate
- The number of requests to the HTTP Location Zone.
http_location_zone_responses_per_code_class_rate
- The number of responses from the HTTP Location Zone. Responses grouped by HTTP status code class.
http_location_zone_traffic_rate
- The amount of data transferred to and from the HTTP Location Zone.
http_location_zone_requests_discarded_rate
- The number of requests to the HTTP Location Zone completed without sending a response.
http_upstream_peers_count
- The number of HTTP Upstream servers.
http_upstream_zombies_count
- The current number of HTTP Upstream servers removed from the group but still processing active client requests.
http_upstream_keepalive_count
- The current number of idle keepalive connections to the HTTP Upstream.
http_upstream_server_requests_rate
- The number of client requests forwarded to the HTTP Upstream Server.
http_upstream_server_responses_per_code_class_rate
- The number of responses received from the HTTP Upstream Server. Responses grouped by HTTP status code class.
http_upstream_server_response_time
- The average time to get a complete response from the HTTP Upstream Server.
- The average time to get a response header from the HTTP Upstream Server.
http_upstream_server_traffic_rate
- The amount of traffic transferred to and from the HTTP Upstream Server.
http_upstream_server_state
- The current state of the HTTP Upstream Server. Status active if set to 1.
http_upstream_server_connections_count
- The current number of active connections to the HTTP Upstream Server.
http_upstream_server_downtime
- The time the HTTP Upstream Server has spent in the unavail, checking, and unhealthy states.
http_cache_state
- HTTP cache current state. Cold means that the cache loader process is still loading data from disk into the cache.
http_cache_iops
- HTTP cache IOPS in responses per second.
- Served - valid, expired, and revalidated responses read from the cache.
- Written - miss, expired, and bypassed responses written to the cache.
- Bypassed - miss, expired, and bypass responses.
http_cache_io
- HTTP cache IO in bytes per second.
- Served - valid, expired, and revalidated responses read from the cache.
- Written - miss, expired, and bypassed responses written to the cache.
- Bypassed - miss, expired, and bypass responses.
http_cache_size
- The current size of the cache.
stream_server_zone_connections_rate
- The number of accepted connections to the Stream Server Zone.
stream_server_zone_sessions_per_code_class_rate
- The number of completed sessions for the Stream Server Zone. Sessions grouped by status code class.
stream_server_zone_traffic_rate
- The amount of data transferred to and from the Stream Server Zone.
stream_server_zone_connections_processing_count
- The number of client connections to the Stream Server Zone that are currently being processed.
stream_server_zone_connections_discarded_rate
- The number of connections to the Stream Server Zone completed without creating a session.
stream_upstream_peers_count
- The number of Stream Upstream servers.
stream_upstream_zombies_count
- The current number of HTTP Upstream servers removed from the group but still processing active client connections.
stream_upstream_server_connections_rate
- The number of connections forwarded to the Stream Upstream Server.
stream_upstream_server_traffic_rate
- The amount of traffic transferred to and from the Stream Upstream Server.
stream_upstream_server_state
- The current state of the Stream Upstream Server. Status active if set to 1.
stream_upstream_server_downtime
- The time the Stream Upstream Server has spent in the unavail, checking, and unhealthy states.
stream_upstream_server_connections_count
- The current number of connections to the Stream Upstream Server.
resolver_zone_requests_rate
- Resolver zone DNS requests.
- Name - requests to resolve names to addresses.
- Srv - requests to resolve SRV records.
- Addr - requests to resolve addresses to names.
resolver_zone_responses_rate
- Resolver zone DNS responses.
- NoError - successful responses.
- FormErr - format error responses.
- ServFail - server failure responses.
- NXDomain - host not found responses.
- NotImp - unimplemented responses.
- Refused - operation refused responses.
- TimedOut - timed out requests.
- Unknown - requests completed with an unknown error.
uptime
- The time elapsed since the NGINX process was started.