in pkg/controller/metrics/metrics.go [37:52]
func HandleControllerReconcileMetrics(controllerName controllername.ControllerNamer, result ctrl.Result, err error) {
cn := controllerName.MetricsName()
switch {
// apierrors.IsNotFound is ignored by controllers so this should too
case err != nil && !apierrors.IsNotFound(err):
AppRoutingReconcileTotal.WithLabelValues(cn, LabelError).Inc()
AppRoutingReconcileErrors.WithLabelValues(cn).Inc()
case result.RequeueAfter > 0:
AppRoutingReconcileTotal.WithLabelValues(cn, LabelRequeueAfter).Inc()
case result.Requeue:
AppRoutingReconcileTotal.WithLabelValues(cn, LabelRequeue).Inc()
default:
AppRoutingReconcileTotal.WithLabelValues(cn, LabelSuccess).Inc()
}
}