View the NGINX status page
This document explains how to get access to the stub status in NGINX and the dashboard in NGINX Plus.
NGINX comes with a status page that reports basic metrics about NGINX called the stub status.
NGINX Plus comes with a dashboard that reports key load-balancing and performance metrics.
F5 DoS for NGINX comes with a dashboard that shows the status and information of the protected objects. This doc shows how to get access to the stub status/dashboard.
Prerequisites:
- The stub status is enabled by default. Ensure that the nginx-statuscommand-line argument is not set to false.
- The stub status 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 status:
- 
Use the kubectl port-forwardcommand to forward connections to port 8080 on your local machine to port 8080 of an NGINX Ingress Controller pod (replace<nginx-ingress-pod>with the actual name of a pod):.kubectl port-forward <nginx-ingress-pod> 8080:8080 --namespace=nginx-ingress
- 
Open your browser at http://127.0.0.1:8080/stub_status to access the status. 
If you want to access the stub status 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 status. 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 stub status at the /stub_statuspath.
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. 
- 
App Protect DoS: Open your browser at http://127.0.0.1:8080/dashboard-dos.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.