Skip to content

Commit

Permalink
metrics: initialize MCDDrainErr in update.go/drain()
Browse files Browse the repository at this point in the history
  • Loading branch information
kikisdeliveryservice committed Oct 26, 2020
1 parent 6806766 commit 738a25d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion pkg/daemon/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ func registerMCDMetrics() error {
}
}

MCDDrainErr.WithLabelValues("", "").Set(0)
MCDPivotErr.WithLabelValues("", "").Set(0)
KubeletHealthState.Set(0)
MCDRebootErr.WithLabelValues("", "").Set(0)
Expand Down
1 change: 1 addition & 0 deletions pkg/daemon/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func (dn *Daemon) drain() error {
if dn.kubeClient == nil {
return nil
}
MCDDrainErr.WithLabelValues(dn.node.Name, "").Set(0)

dn.logSystem("Update prepared; beginning drain")
startTime := time.Now()
Expand Down

0 comments on commit 738a25d

Please sign in to comment.