From fb2adadc4307de04507ca6332b0d0c44fde0dcc7 Mon Sep 17 00:00:00 2001 From: hasithsen Date: Sun, 8 Dec 2024 22:45:21 +0530 Subject: [PATCH] feat: Remove deprecated object metrics from controllers fluxcd/flux2#5083 Signed-off-by: hasithsen --- internal/controller/receiver_controller.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/controller/receiver_controller.go b/internal/controller/receiver_controller.go index 50f85dd2f..f5b0df325 100644 --- a/internal/controller/receiver_controller.go +++ b/internal/controller/receiver_controller.go @@ -113,9 +113,7 @@ func (r *ReceiverReconciler) Reconcile(ctx context.Context, req ctrl.Request) (r } // Record Prometheus metrics. - r.Metrics.RecordReadiness(ctx, obj) r.Metrics.RecordDuration(ctx, obj, reconcileStart) - r.Metrics.RecordSuspend(ctx, obj, obj.Spec.Suspend) // Emit warning event if the reconciliation failed. if retErr != nil {