Skip to content
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

Implement NodeGetVolumeStats RPC #197

Merged
merged 1 commit into from
Nov 12, 2019
Merged

Conversation

timoreimann
Copy link
Contributor

Exposing node capacity statistics facilitates features like alerting on high disk usage.

I ran my implementation on a cluster with Prometheus on and was able to retrieve metrics with the kubelet_volume_* prefix, e.g., kubelet_volume_stats_capacity_bytes. So this seems to work. I'll do some more testing for sure though before merging.

Fixes #134

Copy link
Contributor

@adamwg adamwg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small question, but this lgtm.


return nil, status.Error(codes.Unimplemented, "")
if req.VolumeId == "" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't look like we actually use the VolumeId. Are we validating it just because that's what's in the CSI spec?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exposing node capacity statistics facilitates features like alerting on
high disk usage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Volume stats missing
2 participants