Skip to content

Commit

Permalink
feat: Remove deprecated object metrics from controllers fluxcd/flux2#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hasithsen committed Dec 8, 2024
1 parent 276511a commit 8403e4b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/controller/receiver_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 8403e4b

Please sign in to comment.