mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-19 17:16:12 +00:00
add volume kubelet_volume_stats_health_abnormal to kubelet
This commit is contained in:
@@ -200,6 +200,9 @@ func (s *volumeStatCalculator) parsePodVolumeStats(podName string, pvcRef *stats
|
||||
return stats.VolumeStats{
|
||||
Name: podName,
|
||||
PVCRef: pvcRef,
|
||||
VolumeHealthStats: stats.VolumeHealthStats{
|
||||
Abnormal: *metric.Abnormal,
|
||||
},
|
||||
FsStats: stats.FsStats{Time: metric.Time, AvailableBytes: &available, CapacityBytes: &capacity,
|
||||
UsedBytes: &used, Inodes: &inodes, InodesFree: &inodesFree, InodesUsed: &inodesUsed},
|
||||
}
|
||||
|
@@ -283,6 +283,7 @@ func expectedBlockMetrics() *volume.Metrics {
|
||||
Available: resource.NewQuantity(available, resource.BinarySI),
|
||||
Capacity: resource.NewQuantity(capacity, resource.BinarySI),
|
||||
Used: resource.NewQuantity(available-capacity, resource.BinarySI),
|
||||
Abnormal: &volumeCondition.Abnormal,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user