Documentation ¶
Index ¶
Constants ¶
View Source
const ( LabelError = "error" LabelRequeueAfter = "requeue_after" LabelRequeue = "requeue" LabelSuccess = "success" )
Variables ¶
View Source
var ( AppRoutingReconcileTotal = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "app_routing_reconcile_total", Help: "Total number of reconciliations per controller", }, []string{"controller", "result"}) AppRoutingReconcileErrors = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "app_routing_reconcile_errors_total", Help: "Total number of reconciliation errors per controller", }, []string{"controller"}) )
Functions ¶
func HandleControllerReconcileMetrics ¶
func HandleControllerReconcileMetrics(controllerName controllername.ControllerNamer, result ctrl.Result, err error)
HandleControllerReconcileMetrics is meant to be called within a defer for each controller. This lets us put all the metric handling in one place, rather than duplicating it in every controller
func InitControllerMetrics ¶
func InitControllerMetrics(controllerName controllername.ControllerNamer)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.