Skip to content

Commit 04b1378

Browse files
committed
Fix the incorrect metrics setting/naming in nodeshutdown manager
1 parent 1947bf5 commit 04b1378

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
@@ -739,7 +739,7 @@ var (
739739
&metrics.GaugeOpts{
740740
Subsystem: KubeletSubsystem,
741741
Name: "graceful_shutdown_end_time_seconds",
742-
Help: "Last graceful shutdown start time since unix epoch in seconds",
742+
Help: "Last graceful shutdown end time since unix epoch in seconds",
743743
StabilityLevel: metrics.ALPHA,
744744
},
745745
)

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)