You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
When an Ingress resource is deleted, its corresponding metrics remain in Prometheus and are not cleaned up automatically. These stale metrics only disappear after restarting the nginx-ingress controller.
Question
Is there a way to ensure that these metrics are no longer exposed to Prometheus without restarting nginx-ingress?
Are there any configuration options in nginx-ingress to optimize this behavior?
Or, is there a better recommended approach for handling stale Ingress metrics?
The Ingress corresponding to sit-prometest22.sss.cn in the picture has already been deleted, but Prometheus is still scraping metrics related to it.