Skip to content

Commit 8c5472c

Browse files
authored
Merge pull request kubernetes#128189 from zylxjtu/bug
Fix the incorrect metrics setting/naming in nodeshutdown manager
2 parents 67a4d20 + 04b1378 commit 8c5472c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/kubelet/metrics/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ var (
751751
&metrics.GaugeOpts{
752752
Subsystem: KubeletSubsystem,
753753
Name: "graceful_shutdown_end_time_seconds",
754-
Help: "Last graceful shutdown start time since unix epoch in seconds",
754+
Help: "Last graceful shutdown end time since unix epoch in seconds",
755755
StabilityLevel: metrics.ALPHA,
756756
},
757757
)

pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ func (m *managerImpl) processShutdownEvent() error {
321321
if err != nil {
322322
m.logger.Error(err, "Failed to store graceful shutdown state")
323323
}
324-
metrics.GracefulShutdownStartTime.Set(timestamp(endTime))
324+
metrics.GracefulShutdownEndTime.Set(timestamp(endTime))
325325
}()
326326
}
327327

0 commit comments

Comments
 (0)