How do you monitor Ingress NGINX for an SLO and troubleshooting?
IntermediateScenarioGrafana, Dashboards and Kubernetes Monitoring
Answer
Situation read → Ingress is the front door; it sees all requests.
What I'd do →
- Enable metrics (
controller.metrics.enabled=true, ServiceMonitor) in the Helm chart. - Use
nginx_ingress_controller_requests(byingress,status) andnginx_ingress_controller_request_duration_seconds_bucket. - Monitor controller health: config reload failures (
nginx_ingress_controller_config_last_reload_successful), and upstream latency. - Ship JSON access logs to Loki.
Why → Ingress metrics give a per-route SLI without app changes.
Interview tip → Distinguish request duration from upstream response time to see if latency is in NGINX or the app.
More on Grafana, Dashboards and Kubernetes Monitoring
Grafana has 900 dashboards and nobody can find anything. How do you clean it up?IntermediateHow do you manage Grafana dashboards as code?IntermediateDesign a service overview dashboard that an on-call engineer can read in 10 seconds.BeginnerYou need to show deploy events on every Grafana graph. How?BeginnerPods are being OOMKilled but the memory graph never reaches the limit. Why?IntermediateHow do you detect CPU throttling hurting latency in Kubernetes?Intermediate