-
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
Missing prometheus metrics in versions 0.20.0 and later #4066
Comments
I am experiencing the same issue, after 0.19.0 prometheus query for the above metrics do not appear. |
duplicate of #3713 |
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. |
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
NGINX Ingress controller version: all versions later than and including 0.20.0
Kubernetes version (use
kubectl version
):Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.2", GitCommit:"cff46ab41ff0bb44d8584413b598ad8360ec1def", GitTreeState:"clean", BuildDate:"2019-01-10T23:35:51Z", GoVersion:"go1.11.4", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.5", GitCommit:"2166946f41b36dea2c4626f90a77706f426cdea2", GitTreeState:"clean", BuildDate:"2019-03-25T15:19:22Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}
Environment:
uname -a
): Linux machine-1 3.10.0-862.14.4.el7.x86_64#1
SMP Wed Sep 26 15:12:11 UTC 2018 x86_64 x86_64 x86_64 GNU/LinuxWhat happened:
We are setting up monitoring for our ingress controller. I'm getting all the required metrics when using versions up to 0.19.0. However, as soon as I switch to any later version while using the exact same setup, several important metrics stop appearing.
Here are the metrics which are appearing in v0.19 but absent in v0.24.1-
nginx_ingress_controller_bytes_sent
nginx_ingress_controller_ingress_upstream_latency_seconds
nginx_ingress_controller_request_duration_seconds
nginx_ingress_controller_request_size
nginx_ingress_controller_requests
nginx_ingress_controller_response_duration_seconds
nginx_ingress_controller_response_size
What you expected to happen: We are expecting the above mentioned metrics to be present in all the versions after 0.17.1.
How to reproduce it (as minimally and precisely as possible):
Create test pod + service by applying the following yaml-
Create test ingress by applying the yaml-
Deploy Ingress Controller with necessary Configmaps and RBAC by applying the yaml-
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/mandatory.yaml
This will deploy version 0.24.1, call the test service a couple of times-
kubectl exec -it ingress-controller-podname -n ingress-nginx curl 0.0.0.0/apple
Then check the metrics-
kubectl exec -it ingress-controller-podname -n ingress-nginx curl 0.0.0.0:10254/metrics
Now try version 0.19.0 by changing the image version in the deployment and add the flag
--default-backend-service=default/apple-service
in the args in the deployment and repeat the service hit and metrics scraping.Anything else we need to know:
The text was updated successfully, but these errors were encountered: