From 8403e4b16762bbbfa25b2b21c2358dfca387a45b 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 --- internal/controller/receiver_controller.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/controller/receiver_controller.go b/internal/controller/receiver_controller.go index 50f85dd2f..653bfc46f 100644 --- a/internal/controller/receiver_controller.go +++ b/internal/controller/receiver_controller.go @@ -112,11 +112,6 @@ func (r *ReceiverReconciler) Reconcile(ctx context.Context, req ctrl.Request) (r retErr = kerrors.NewAggregate([]error{retErr, err}) } - // 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 { r.Event(obj, corev1.EventTypeWarning, meta.FailedReason, retErr.Error())