-
Notifications
You must be signed in to change notification settings - Fork 108
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
Conversation
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.
One small question, but this lgtm.
|
||
return nil, status.Error(codes.Unimplemented, "") | ||
if req.VolumeId == "" { |
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.
Doesn't look like we actually use the VolumeId
. Are we validating it just because that's what's in the CSI spec?
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.
That's correct: the field is marked as required per the CSI spec, and the upstream unit tests codify this requirement.
17343cf
to
1991f5c
Compare
Exposing node capacity statistics facilitates features like alerting on high disk usage.
1991f5c
to
e817678
Compare
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