View the NGINX status page
This document explains how to get access to the dashboard in NGINX Plus.
NGINX Plus comes with a dashboard that reports key load-balancing and performance metrics.
Prerequisites:
- The dashboard is enabled by default. Ensure that the
nginx-statuscommand-line argument is not set to false. - The dashboard is available on port 8080 by default. It is customizable by the
nginx-status-portcommand-line argument. If yours is not on 8080, modify the kubectl proxy command below.
To access the dashboard:
-
Use the
kubectl port-forwardcommand to forward connections to port 8080 on your local machine to port 8080 of an NGINX Plus Ingress Controller pod (replace<nginx-plus-ingress-pod>with the actual name of a pod):kubectl port-forward <nginx-plus-ingress-pod> 8080:8080 --namespace=nginx-ingress -
Open your browser at http://127.0.0.1:8080/dashboard.html to access the dashboard.
If you want to access the dashboard externally (without kubectl port-forward):
- Configure
-nginx-status-allow-cidrscommand-line argument with IP/CIDR blocks for which you want to allow access to the dashboard. By default, the access is allowed for127.0.0.1,::1. - Use the IP/port through which the Ingress Controller pod/pods are available to connect the dashboard at the
/dashboard.htmlpath.
Note: The API, which the dashboard uses to get the metrics, is also accessible: use the /api path. For App Protect DoS use the /api/dos path. Note that the API is configured in the read-only mode.