Skip to content

Commit 966ce02

Browse files
committed
feat: Remove deprecated object metrics from controllers fluxcd/flux2#5083
1 parent 9d65ff8 commit 966ce02

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

internal/controller/kustomization_controller.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,6 @@ func (r *KustomizationReconciler) Reconcile(ctx context.Context, req ctrl.Reques
184184
retErr = kerrors.NewAggregate([]error{retErr, err})
185185
}
186186

187-
// Record Prometheus metrics.
188-
r.Metrics.RecordReadiness(ctx, obj)
189-
r.Metrics.RecordDuration(ctx, obj, reconcileStart)
190-
r.Metrics.RecordSuspend(ctx, obj, obj.Spec.Suspend)
191-
192187
// Log and emit success event.
193188
if conditions.IsReady(obj) {
194189
msg := fmt.Sprintf("Reconciliation finished in %s, next run in %s",

0 commit comments

Comments
 (0)