Fix the incorrect metrics setting/naming in nodeshutdown manager

This commit is contained in:
zylxjtu 2024-10-25 10:16:47 -07:00
parent 1947bf57ef
commit 04b1378804
2 changed files with 2 additions and 2 deletions

View File

@ -739,7 +739,7 @@ var (
&metrics.GaugeOpts{
Subsystem: KubeletSubsystem,
Name: "graceful_shutdown_end_time_seconds",
Help: "Last graceful shutdown start time since unix epoch in seconds",
Help: "Last graceful shutdown end time since unix epoch in seconds",
StabilityLevel: metrics.ALPHA,
},
)

View File

@ -321,7 +321,7 @@ func (m *managerImpl) processShutdownEvent() error {
if err != nil {
m.logger.Error(err, "Failed to store graceful shutdown state")
}
metrics.GracefulShutdownStartTime.Set(timestamp(endTime))
metrics.GracefulShutdownEndTime.Set(timestamp(endTime))
}()
}