fix unit test
This commit is contained in:
parent
4a72f08a28
commit
1cdc694ac2
@ -64,7 +64,7 @@ var (
|
||||
|
||||
volumeStatsHealthAbnormalDesc = metrics.NewDesc(
|
||||
metrics.BuildFQName("", kubeletmetrics.KubeletSubsystem, kubeletmetrics.VolumeStatsHealthStatusKey),
|
||||
"Volume health status. The value 1 of this metrics indicates volume is unhealthy, 0 indicates the unhealthy volume",
|
||||
"Volume health status. The value 1 of this metrics indicates unhealthy volume, 0 indicates the healthy",
|
||||
[]string{"namespace", "persistentvolumeclaim", "volume_health_status"}, nil,
|
||||
metrics.ALPHA, "")
|
||||
)
|
||||
|
@ -47,7 +47,7 @@ func TestVolumeStatsCollector(t *testing.T) {
|
||||
# TYPE kubelet_volume_stats_inodes_used gauge
|
||||
# HELP kubelet_volume_stats_used_bytes [ALPHA] Number of used bytes in the volume
|
||||
# TYPE kubelet_volume_stats_used_bytes gauge
|
||||
# HELP kubelet_volume_stats_health_status [ALPHA] Volume health status. The count is either 1 or 0
|
||||
# HELP kubelet_volume_stats_health_status [ALPHA] Volume health status. The value 1 of this metrics indicates unhealthy volume, 0 indicates the healthy
|
||||
# TYPE kubelet_volume_stats_health_status gauge
|
||||
`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user