You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -56,6 +61,8 @@ var nodeServerCmd = &cobra.Command{
56
61
57
62
funcinit() {
58
63
nodeServerCmd.PersistentFlags().IntVar(&metricsPort, "metrics-port", metricsPort, "Metrics port at "+consts.AppPrettyName+" exports metrics data")
64
+
nodeServerCmd.PersistentFlags().BoolVar(&enableVolumeHealthMonitor, "enable-volume-health-monitor", enableVolumeHealthMonitor, "Enable volume health monitoring")
65
+
nodeServerCmd.PersistentFlags().DurationVar(&volumeHealthMonitorInterval, "volume-health-monitor-interval", volumeHealthMonitorInterval, "Interval for volume health monitoring in duration. Example: '20m','1h'")
Copy file name to clipboardExpand all lines: docs/monitoring.md
+18
Original file line number
Diff line number
Diff line change
@@ -79,3 +79,21 @@ scrape_configs:
79
79
action: replace
80
80
target_label: kubernetes_name
81
81
```
82
+
83
+
# Volume health monitoring
84
+
85
+
This is a [CSI feature](https://kubernetes.io/docs/concepts/storage/volume-health-monitoring/) introduced as an Alpha feature in Kubernetes v1.19 and a second Alpha was done in v1.21. This feature is to detect "abnormal" volume conditions and report them as events on PVCs and Pods. A DirectPV volume will be considered as "abnormal" if the respective volume mounts are not present in the host.
86
+
87
+
For node side monitoring, the feature gate `CSIVolumeHealth` needs to be enabled. However, DirectPV also installs external health monitor controller which monitors and reports volume health events to PVCs.
88
+
89
+
To enable volume health monitoring, Install directpv with `--enable-volume-health-monitoring` flag.
0 commit comments