'How do I find all ingress in K8S that have not received a request?

I use nginx ingress.

If ingress has not received a request, there is no record of the ingress in Prometheus, so one idea I came up with was to list all the ingress names and query Prometheus. If there is no record of the ingress, there is no request to access this host. However, this performance is too low, is there a better way?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source