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
…5083

Signed-off-by: hasithsen <[email protected]>
  • Loading branch information
hasithsen committed Dec 9, 2024
1 parent 9d65ff8 commit 348b6f0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/controller/kustomization_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,6 @@ func (r *KustomizationReconciler) Reconcile(ctx context.Context, req ctrl.Reques
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)

// Log and emit success event.
if conditions.IsReady(obj) {
msg := fmt.Sprintf("Reconciliation finished in %s, next run in %s",
Expand Down

0 comments on commit 348b6f0

Please sign in to comment.