Skip to content

Commit a05d633

Browse files
authored
[ws-manager-mk2] log the stop reason (#20059)
1 parent 8320630 commit a05d633

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/ws-manager-mk2/controllers/metrics.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ func (m *controllerMetrics) countWorkspaceStop(log *logr.Logger, ws *workspacev1
228228
class := ws.Spec.Class
229229
tpe := string(ws.Spec.Type)
230230

231+
log.Info("workspace stop reason", "type", tpe, "class", class, "reason", reason)
232+
231233
m.totalStopsCounterVec.WithLabelValues(reason, tpe, class).Inc()
232234
}
233235

0 commit comments

Comments
 (0)