-
Notifications
You must be signed in to change notification settings - Fork 4.2k
feat(vpa/updater): Add a new counter metric to measure the total number of failed Pods evictions attempts #8430
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
feat(vpa/updater): Add a new counter metric to measure the total number of failed Pods evictions attempts #8430
Conversation
Hi @vitanovs. 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-sigs/prow repository. |
/ok-to-test |
collectors := []prometheus.Collector{ | ||
controlledCount, | ||
evictableCount, | ||
evictedCount, | ||
vpasWithEvictablePodsCount, | ||
vpasWithEvictedPodsCount, | ||
failedEvictionAttempts, | ||
inPlaceUpdatableCount, | ||
inPlaceUpdatedCount, | ||
vpasWithInPlaceUpdatablePodsCount, | ||
vpasWithInPlaceUpdatedPodsCount, | ||
failedInPlaceUpdateAttempts, | ||
functionLatency, | ||
} | ||
prometheus.MustRegister(collectors...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
Thanks for doing this. My brain is very Pythonic, and this reads easier for me!
be353e1
to
e839588
Compare
…d Pod evictions This commit adds a new counter metric measuring the total number of failed attempts to evict Pods.
…etric Add a dedicated unit test to verify the utility function updates the counter correctly.
…n an error occurs This commit uses the new metric utility to increase the total number of failed Pod evictions attempts.
e839588
to
cc7a83c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this! LGTM
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adrianmoisey, vitanovs 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 |
Thanks for taking the time to review the PR @omerap12 @adrianmoisey I see it being approved, but the lacking lgtm prevents the tide check from passing. Is there anything else that I should take care of regarding the change ? Thanks :)) |
Oh sorry. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR features a new
failed_eviction_attempts_total
counter metric in thevpa-updater
so that we can track both the successful Pod(s) evictions, viaevicted_pods_total
and the failed attempts. Having this additional metric will allow us to calculate the success/failure rates of the evictions.The implementation approach follows the already existing pattern of the in-place resource updates metrics, where we have a
to track both patch requests outcomes.
Which issue(s) this PR fixes:
Fixes #8427
Does this PR introduce a user-facing change?