-
Notifications
You must be signed in to change notification settings - Fork 526
Configure vpa-updater
with a ServiceMonitor
to allow metrics scraping
#12677
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
Configure vpa-updater
with a ServiceMonitor
to allow metrics scraping
#12677
Conversation
Skipping CI for Draft Pull Request. |
14c697a
to
0e58eae
Compare
/assign |
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.
- Should we add similar test to
It("should label vpa-admission-controller ServiceMonitor with prometheus=shoot",func()
in the followingContext
?
Context("when deploying ServiceMonitors", func() {
- other suggestion is code structural nit
This commit introduces a ServiceMonitor resource to the VPA updater in order to scrape the component metrics by Prometheus. Also: - As a requirement, a new Service resource is created to enable the ServiceMonitor referrence with the VPA updater.
… expected resources This commit adds the new vpa-updater ServiceMonitor and Service to the expected resources within the vpa unit tests.
0e58eae
to
5783f15
Compare
…rent cluster types This commit instruments the utility functions that create testing resources to use switch and separate the different cluster types in dedicated cases.
4eb51ea
to
a35364d
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.
/lgtm
LGTM label has been added. Git tree hash: 7e3c460272722724a892aa82c95c565fe4784414
|
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.
📈
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: plkokanov 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 |
…ping (gardener#12677) * feat(vpa/updater): add `ServiceMonitor` to `vpa-updater` This commit introduces a ServiceMonitor resource to the VPA updater in order to scrape the component metrics by Prometheus. Also: - As a requirement, a new Service resource is created to enable the ServiceMonitor referrence with the VPA updater. * feat(vpa/updater/test): include `ServiceMonitor` and `Service` to the expected resources This commit adds the new vpa-updater ServiceMonitor and Service to the expected resources within the vpa unit tests. * feat(vpa/updater/test): add tests to check if `ServiceMonitor` is labeled correctly * chore(vpa/updater/test): use `switch` when creating objects for different cluster types This commit instruments the utility functions that create testing resources to use switch and separate the different cluster types in dedicated cases.
How to categorize this PR?
/area auto-scaling
/kind enhancement
What this PR does / why we need it:
This PR introduces an additional
ServiceMonitor
andService
records for thevpa-updater
, allowing the Prometheus operator deployment to scrape the component [vpa-updater] metrics.Following the local setup guide, the following metric entries should be available:
Which issue(s) this PR fixes:
Fixes #12676
Release note: