diff --git a/cluster-autoscaler/metrics/metrics.go b/cluster-autoscaler/metrics/metrics.go index 3717e0247e6f21e7c892808faae14e7e9d50cce9..ebc5541c5edbd560ec3efb1735a9e95b4957e96f 100644 --- a/cluster-autoscaler/metrics/metrics.go +++ b/cluster-autoscaler/metrics/metrics.go @@ -504,9 +504,7 @@ func UpdateDurationFromStart(label FunctionLabel, start time.Time) { // UpdateDuration records the duration of the step identified by the label func UpdateDuration(label FunctionLabel, duration time.Duration) { - // TODO(maciekpytel): remove second condition if we manage to get - // asynchronous node drain - if duration > LogLongDurationThreshold && label != ScaleDown { + if duration > LogLongDurationThreshold { klog.V(4).Infof("Function %s took %v to complete", label, duration) } functionDuration.WithLabelValues(string(label)).Observe(duration.Seconds())