fix unit test

This commit is contained in:
fengzixu 2021-11-29 21:49:54 +09:00
parent 4a72f08a28
commit 1cdc694ac2
2 changed files with 2 additions and 2 deletions

View File

@ -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, "")
)

View File

@ -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
`