Expose PVC metrics via kubelet prometheus#51553
Expose PVC metrics via kubelet prometheus#51553k8s-github-robot merged 1 commit intokubernetes:masterfrom
Conversation
|
/sig storage |
|
/lgtm |
|
/retest |
|
Appears that |
|
kubelet changes /lgtm /approve |
bbed4db to
7738204
Compare
|
/retest |
|
@jingxu97 please re-add /lgtm, the queue is extremely slow (Estimated Merging 0 PRs per day.) so I'm now more scared of getting left behind than I am of* git, thank you! |
|
/lgtm |
|
@wongma7 Could you rebase? After that, you could put lgtm too. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: derekwaynecarr, gnufied, jingxu97, wongma7 Associated issue: 363 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
|
/retest |
|
/retest |
|
/test pull-kubernetes-kubemark-e2e-gce |
|
/retest Review the full test history for this PR. |
|
/test all [submit-queue is verifying that this PR is safe to merge] |
|
Automatic merge from submit-queue |
|
@wongma7: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions 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. |
|
Is it possible to get this cherry picked back to 1.6 / 1.7? |
|
@tanner-bruce because this is 1.8 feature so unfortunately we could not cherry pick this PR. |
|
Prometheus endpoint in kubelet should only export metrics about kubelet state and not about the pods running on the node. Same applies to other components, for example apiserver exports metrics about number of handled requests, but doesn't export any metrics about pods running in Kubernetes cluster. Resource usage metrics should be exported by:
Due to historical reasons, as a side effect of linking cadvisor into Kubelet, there are some resource usage metrics exposed through Prometheus endpoint in Kubelet, but we plan to remove it at some point (of course in a graceful way). In particularly this means that this PR uses a deprecated approach. cc @fgrzadkowski @kubernetes/sig-instrumentation-pr-reviews |
|
I agree with @piosz in regards to the inconsistencies with the monitoring architecture, however, due to the nature of how deeply the kubelet is involved in setting up the volumes I can't currently see a better way. Maybe this would be yet another case of the exporter we have been discussing on sig-instrumentation lately? I'm concerned though that the responsibility of this exporter might explode before we even started implementing it. |
|
I agree with the view explained by @piosz , but then a quick question in case cadvisor is removed from the picture.
Because PVs and PVCs are critical components for pods to operate (if the PV is full the pod/container using that pod will have problems for sure). Currently the info is available in summary API, but not in a prometheus metric format. Thanks and regards! |
|
The idea is that the kubelet is able to retrieve that very information that the scheduler requires for its purposes itself, which could be through a library, that both the kubelet and the cAdvisor replacement would use. If you're interested in the topic I'd suggest to join the bi-weekly sig-instrumentation call 🙂 . |
This depends on #51448, opening early though. second commit is mine and mostly a copy/paste job.
implements metrics listed in here kubernetes/community#855 following method here kubernetes/community#930 (comment)
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close that issue when PR gets merged): kubernetes/enhancements#363Special notes for your reviewer:
Release note: