Issue with NGINX Ingress Controller Prometheus Metrics

Asking for help? Comment out what you need so we can get more information to help you!

Cluster information:

Kubernetes version: 1.17.11
Cloud being used: AKS
Installation method: HELM
Host OS: Linux

Hi All! Im struggling to configure prometheus metrics for my nginx ingress controller running in AKS and was wondering if anyone had any insight. I’ve found some documentation here: https://kubernetes.github.io/ingress-nginx/user-guide/monitoring/ which states that “–metrics-per-host=false” should be set when the controller is deployed. I am deploying the controller through Helm and attempted to manually add “–metrics-per-host=false” to the deployment yaml but this caused a crash loop.
The documentation for this seems to be all over the place though. I found the CLI argument here: https://kubernetes.github.io/ingress-nginx/user-guide/cli-arguments/ but have been unable to find it in the actual nginx documentation here: https://docs.nginx.com/nginx-ingress-controller/configuration/global-configuration/command-line-arguments/

@m33pm33p I managed to setup Prometheus based monitoring for the community NGINX Ingress Controller by following this guide.

I have reported about the missing instructions here.

Hope this would help.