Skip to content

Commit fe12bf5

Browse files
authored
set the machine_controller_workers metric to an actual value (kubermatic#1163)
1 parent eae4026 commit fe12bf5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pkg/controller/machine/machine_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ func Add(
216216
return err
217217
}
218218

219+
metrics.Workers.Set(float64(numWorkers))
220+
219221
return c.Watch(
220222
&source.Kind{Type: &corev1.Node{}},
221223
handler.EnqueueRequestsFromMapFunc(func(node client.Object) (result []reconcile.Request) {

0 commit comments

Comments
 (0)