Skip to content

Commit 6e910d0

Browse files
committed
draincordon
1 parent 7ba17f1 commit 6e910d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/interruptionevent/draincordon/handler.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ func (h *Handler) HandleEvent(drainEvent *monitor.InterruptionEvent) error {
114114
h.commonHandler.InterruptionEventStore.CancelInterruptionEvent(drainEvent.EventID)
115115
} else {
116116
h.commonHandler.InterruptionEventStore.MarkAllAsProcessed(nodeName)
117+
h.commonHandler.Metrics.NodesDec(nodeName)
117118
}
118119

119120
if (err == nil || (!nodeFound && h.commonHandler.NthConfig.DeleteSqsMsgIfNodeNotFound)) && drainEvent.PostDrainTask != nil {

0 commit comments

Comments
 (0)