-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Few metrics are missing in Ingress nginx #5755
Comments
/assign |
@thamaraiselvam Can you show me applied ingress yaml? |
If you didn't specify ingress host, ingress status is as below:
When ingress-nginx/internal/ingress/metric/collectors/socket.go Lines 233 to 235 in d825859
So you can't see some metrics such as nginx_ingress_controller_request
|
Hi @Bo0km4n this is a sample ingress in my
And I also verified that all our ingress in the production cluster have HOSTS defined. However in both the cases, I am getting the same issue that some of these metrics are missing. |
@aedorado I see. |
/assign |
I get the response below:
Earlier I was curling it as Besides, generally we open the URLs in browser or make API calls using the ingress, so would expect the ingress to send metrics for all the scenarios. |
@aedorado localhost address is example and depends on your environment. |
Thank you @Bo0km4n In this case address is not there
|
@danderson Please note your environment and manifests(Service, Deployment, Ingress) |
Hey @Bo0km4n can you be little more elaborate? |
@aedorado Ok, |
|
|
|
All of the above are from minikube, but we are having the same problem on our GKE clusters as well. |
@aedorado I confirmed some metrics you want to see in minikube. I note steps taken below: Set up ingress
deploy service and ingress
And then, exec curl command for expose some metrics
To confirm nginx metrics, enter shell of ingress controller
In the ingress nginx controller, access to metrics path
|
/unassign |
@Bo0km4n Why are metrics filtered out in this case. I have an ingress where host is not specified (empty key) and I am not getting these metrics. |
Same issue here, we only use one host and we don't specify its name. |
If you don't specify the host name, nginx convert destination host parameter to Pod IP. Maybe, I guess above the code is filtering metrics by host parameter for those reason. |
@kingli-crypto Thanks for giving information. In case of disabling Please try it. |
@Bo0km4n No that's not the case. I disabled |
Turns out there is a existing PR for this issue #4139 |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@kingli-crypto did you manage to solve that issue? I have the exact same issue and disabling metrics-per-host doesn't solve the issue |
@thamaraiselvam are you able to fix it. |
@iamkinchit: You can't reopen an issue/PR unless you authored it or you are a collaborator. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
NGINX Ingress controller version: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.30.0
Kubernetes version (use
kubectl version
): Server Version: v1.14.10-gke.27Environment:
uname -a
): Linux nginx-ingress-controller-5485cb45c7-48qfp 4.14.138+ Basic structure #1 SMP Tue Sep 3 02:58:08 PDT 2019 x86_64 LinuxWhat happened:
After fresh installed nginx ingress controller with metrics enabled. we are not able to see few metrics.
What you expected to happen:
We are able to see above metrics in different cluster with same ingress nginx controller version, we are not sure why in this fresh install those are metrics are missing.
We also verified deployment, configmap and other setting, all are same for both installation but still it is not working for new installer.
How to reproduce it:
Install following helm chart with version 1.36.2
helm install stable/nginx-ingress --name ingress --set controller.metrics.enabled=true --version 1.36.2
after installed, go into ingress controller and check
curl localhost:10254/metrics
Additional information:
We also put load for ingress controller but still could not see those metrics.
The text was updated successfully, but these errors were encountered: