Repository navigation
feat(ci): add Prometheus monitoring overlay - #4102
google-oss-prow[bot] merged 14 commits into
Conversation
|
@ugiordan: changing LGTM is restricted to collaborators DetailsIn 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. |
robert-bell
left a comment
There was a problem hiding this comment.
Thanks @abhijeet-dhumal!
Could you also add the service monitor to the helm chart please?
Thanks @robert-bell ! |
32819ff to
7511a5b
Compare
@andreyvelich Are we good to go with this PR? |
|
/lgtm as well |
shreyaabaranwal
left a comment
There was a problem hiding this comment.
Thanks for this, @abhijeet-dhumal. Since the chart now exposes metrics.auth.enabled,
one thing I noticed while reading: when auth is enabled, the metrics filter calls
TokenReview and SubjectAccessReview (pkg/metrics/setup.go, lines 57-58). The
controller ClusterRole in manifests/base/rbac/role.yaml grants create on both
(lines 88, 94), but the Helm ClusterRole (charts/kubeflow-trainer/templates/rbac/
clusterrole.yaml) doesn't, and this PR doesn't change that file.
I've only checked this by reading the code and rendering the templates, not on a
live cluster. Should those two rules be added to the Helm ClusterRole in this PR,
or would a follow-up be better? Happy to take the follow-up if you'd prefer.
Thanks for spotting this @shreyaabaranwal - I think you're right this is missing from the helm chart. @abhijeet-dhumal could you add subjectaccessreviews and tokenreviews into the helm chart rbac in this PR? |
c49149c to
f07fbbe
Compare
Thanks @shreyaabaranwal for catching this. @robert-bell I have added the required TokenReview and SubjectAccessReview permissions to the Helm ClusterRole, matching the base manifests, and added unit-test coverage. |
|
Aside from Andrey's small comment this looks great - thanks @abhijeet-dhumal! /lgtm |
|
Thanks @andreyvelich and @robert-bell. All remaining feedback is addressed, including renaming the overlay to manifests/overlays/prometheus. Kustomize validation passes and no stale references remain. |
|
Rebasing on #4217 to resolve ee test PR checks failures |
Signed-off-by: abhijeet-dhumal <abhijeetdhumal652@gmail.com>
Signed-off-by: abhijeet-dhumal <abhijeetdhumal652@gmail.com>
Signed-off-by: abhijeet-dhumal <abhijeetdhumal652@gmail.com>
Signed-off-by: abhijeet-dhumal <abhijeetdhumal652@gmail.com>
Signed-off-by: abhijeet-dhumal <abhijeetdhumal652@gmail.com>
Signed-off-by: abhijeet-dhumal <abhijeetdhumal652@gmail.com>
Signed-off-by: abhijeet-dhumal <abhijeetdhumal652@gmail.com>
Signed-off-by: abhijeet-dhumal <abhijeetdhumal652@gmail.com>
Signed-off-by: abhijeet-dhumal <abhijeetdhumal652@gmail.com>
Signed-off-by: abhijeet-dhumal <abhijeetdhumal652@gmail.com>
Signed-off-by: abhijeet-dhumal <abhijeetdhumal652@gmail.com>
Signed-off-by: abhijeet-dhumal <abhijeetdhumal652@gmail.com>
Signed-off-by: abhijeet-dhumal <abhijeetdhumal652@gmail.com>
Signed-off-by: abhijeet-dhumal <abhijeetdhumal652@gmail.com>
4f0bf85 to
9b7b654
Compare
|
/lgtm Thanks @abhijeet-dhumal! |
andreyvelich
left a comment
There was a problem hiding this comment.
Thanks for this work @abhijeet-dhumal!
/lgtm
/approve
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andreyvelich The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
| serviceMonitor: | ||
| # -- Whether to create a Prometheus Operator ServiceMonitor. | ||
| enabled: false | ||
| # -- Additional labels for selecting this ServiceMonitor from Prometheus. |
There was a problem hiding this comment.
Quick question here, @abhijeet-dhumal @robert-bell.
Do we want to use prometheus or metrics in the Helm Chart values to be consistent with JobSet and Kueue?
There was a problem hiding this comment.
Yeah we should be consistent. I'd lean towards prometheus which is also what cert-manager uses.
There was a problem hiding this comment.
Sounds good to me, @abhijeet-dhumal please could you create PR to update it to prometheus?
What this PR does
Adds optional Prometheus monitoring configuration for the Trainer controller.
ServiceMonitor.ServiceMonitor.monitoring-port.Scope
This PR addresses the scrapeability portion of #3429 for the existing controller-runtime metrics endpoint. It does not add Trainer-specific metrics or runtime workload instrumentation.
The monitoring resources are opt-in and require the Prometheus Operator CRDs. Prometheus RBAC and platform-specific authentication configuration remain deployment-specific. Authentication over HTTP is rejected by the Helm chart.
Validation
Follow-up