-
Notifications
You must be signed in to change notification settings - Fork 38.6k
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
Fixed /metrics endpoint for resource consumer #72407
Fixed /metrics endpoint for resource consumer #72407
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
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. I understand the commands that are listed here. |
Hi @aespejel. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
I signed it |
/ok-to-test
Nice catch! Though the e2e test that uses this image seems to use kubernetes/test/e2e/instrumentation/monitoring/prometheus.go Lines 111 to 127 in 7d85546
/assign @serathius |
@ixdy: GitHub didn't allow me to assign the following users: serathius. Note that only kubernetes members and repo collaborators can be assigned. 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. |
also |
@ixdy
So I guess that we should update the tests, if you don't mind I'll update it right now, and if finally we don't go this way and it's working as intended, we just close this PR and open other updating the docs. :) |
in order for the tests to pass, we'll need to update the version and push a new version of the image, too. I'd like to get @jszczepkowski or @serathius to weigh in on the expected behavior before doing that. |
the approvers in https://github.com/kubernetes/kubernetes/blob/master/test/e2e/instrumentation/OWNERS can approve this change |
Can someone on @kubernetes/sig-instrumentation-pr-reviews please review? |
/lgtm |
/approve |
/lgtm |
Can you please squash your commits? Otherwise this LGTM. |
@ixdy done! |
/lgtm |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aespejel, brancz, ixdy The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
What this PR does / why we need it:
Fixes the endpoint exposing metrics in the resource consumer container.
By default, and as far as I know, Prometheus looks for /metrics, right now metrics are being exposed on /Metrics (and the purpose of this endpoint, reading the docs, is to be able to expose fake metrics in Prometheus format on "/metrics").
Which issue(s) this PR fixes:
Fixes #72403
Special notes for your reviewer:
It was probably introduced here: 967a7c9
Does this PR introduce a user-facing change?: