kubernetes-csi / external-health-monitor

This repo contains sidecar controller and agent for volume health monitoring.
Apache License 2.0
64 stars 49 forks source link

Clarification on NodeGetVolumeStats Behavior and Required Feature Gate for Volume Health and PVC Usage Monitoring #263

Open adarsh-dell opened 2 months ago

adarsh-dell commented 2 months ago

According to the documentation, enabling the feature gate is necessary to utilize this feature. In one of our OCP clusters, I observed that NodeGetVolumeStatsis being called by the node serviceof the CSI drivercontainer. Could someone please clarify if this behavior is expected? If so, what specific functionality requires the feature gate to be enabled at the cluster level?

We have enabled this feature to monitor volume healthand to track PVCusage, including remainingand used capacity.

image

Thanks, Adarsh

xing-yang commented 2 weeks ago

Sorry, I missed this issue earlier. "used" capacity is part of NodeGetVolumeStats that is already GA. It is not controlled by the volume health feature gate. Volume health feature gate enables VolumeConditionAbnormal events to be reported and corresponding metric to be emitted: https://kubernetes.io/blog/2021/04/16/volume-health-monitoring-alpha-update/#node-side-volume-health-monitoring