From b3ba4725b9a522f5e4dbd12e30200d523563f1d7 Mon Sep 17 00:00:00 2001 From: hugoShaka Date: Thu, 9 Jan 2025 18:08:06 -0500 Subject: [PATCH] Make prometheus reisterer mandatory --- lib/autoupdate/rollout/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/autoupdate/rollout/controller.go b/lib/autoupdate/rollout/controller.go index f80c9b168c221..8f05e2c45ccca 100644 --- a/lib/autoupdate/rollout/controller.go +++ b/lib/autoupdate/rollout/controller.go @@ -64,7 +64,7 @@ func NewController(client Client, log *slog.Logger, clock clockwork.Clock, perio return nil, trace.BadParameter("missing clock") } if reg == nil { - reg = prometheus.DefaultRegisterer + return nil, trace.BadParameter("missing prometheus.Registerer") } if period <= 0 {