kubernetes / ingress-nginx

Ingress NGINX Controller for Kubernetes
https://kubernetes.github.io/ingress-nginx/
Apache License 2.0
17.42k stars 8.24k forks source link

nginx_ingress_controller_requests doesn't work with ingress host domain name #10812

Open winds33ker opened 10 months ago

winds33ker commented 10 months ago

Hi, We configured ingress-nginx on our EKS cluster with --metrics-per-host=false and --enable-ssl-passthrough, but we still cannot see nginx_ingress_controller_requests from ingress. Currently we can only see the counts, if traffics hit the AWS NLB endpoint straight away.

Prometheus, ingress controller and application ingresses are in different namespaces ingress-nginx version: 1.6.4

Is there any extra configuration we need to add? and is there any docs regarding the configurations?

Thank you very much

k8s-ci-robot commented 10 months ago

This issue is currently awaiting triage.

If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
longwuyuan commented 10 months ago

I am not sure the default dashboard and prometheus can provide the metric you seek on a passthrough.

winds33ker commented 10 months ago

I am not sure the default dashboard and prometheus can provide the metric you seek on a passthrough.

Thanks for the reply. Do you mean nginx_ingress_controller_requests metric doesn't work with ssl passthrough?

ahsannaseem01 commented 9 months ago

Screenshot 2024-01-09 at 8 34 57 PM

Hi @winds33ker I tried to reproduce the issue and was getting the metrics successfully.

Used the basic config for testing metrics:

winds33ker commented 9 months ago

Screenshot 2024-01-09 at 8 34 57 PM

Hi @winds33ker I tried to reproduce the issue and was getting the metrics successfully.

Used the basic config for testing metrics:

Hi @ahsannaseem01, Thank you for your reply Did you enable ssl passthrough?

Thanks again.

winds33ker commented 9 months ago

Hi @ahsannaseem01, Currently the issue is that we can see the metrics if the traffics hit alb directly, but the metrics doesn't work with domain name. We are using official suggested configurations, but we don't know why the metric doesn't work...

github-actions[bot] commented 8 months ago

This is stale, but we won't close it automatically, just bare in mind the maintainers may be busy with other tasks and will reach your issue ASAP. If you have any question or request to prioritize this, please reach #ingress-nginx-dev on Kubernetes Slack.