Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ReconcileConflictErrors is a Prometheus counter metric which holds the total // number of conflict errors from the Reconciler ReconcileConflictErrors = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "controller_runtime_reconcile_conflict_errors_total", Help: "Total number of reconciliation conflict errors per controller", }, []string{"controller"}) // ExperimentTrials is a Prometheus gauge metric which holds the total number // of trials for an experiment (trial counts can go down when they are cleaned up) ExperimentTrials = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "optimize_experiment_trials_total", Help: "Total number of trials present for an experiment", }, []string{"experiment"}) // ExperimentActiveTrials is a Prometheus gauge metric which holds the total number // of active trials for an experiment ExperimentActiveTrials = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "optimize_experiment_active_trials_total", Help: "Total number of active trials present for an experiment", }, []string{"experiment"}) )
Functions ¶
func IgnoreAlreadyExists ¶
IgnoreAlreadyExists returns the supplied error, unless that error is an "already exists" error
func IgnoreNotFound ¶
IgnoreNotFound returns the supplied error, unless that error is a "not found" error
func IgnoreReportError ¶
IgnoreReportError returns the supplied error, unless the error is ignorable when reporting trials
func RequeueConflict ¶
RequeueConflict will return a new result and the supplied error, adjusted for Kubernetes conflict errors
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.