Documentation
¶
Index ¶
- Variables
- func RecordApply(name, namespace string, created, updated, unchanged int)
- func RecordDuration(name, namespace string, duration time.Duration)
- func RecordPrune(name, namespace string, deleted int)
- func RecordReconcile(name, namespace, outcome string, duration time.Duration)
- func SetInventorySize(name, namespace string, size int)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ReconcileTotal counts reconcile attempts by outcome. ReconcileTotal = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "opm_controller_reconcile_total", Help: "Total number of reconcile attempts by outcome.", }, []string{"name", "namespace", "outcome"}, ) // ReconcileDuration observes reconcile duration in seconds. ReconcileDuration = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Name: "opm_controller_reconcile_duration_seconds", Help: "Duration of reconcile attempts in seconds.", Buckets: prometheus.DefBuckets, }, []string{"name", "namespace"}, ) // ApplyResourcesTotal counts resources applied by action. ApplyResourcesTotal = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "opm_controller_apply_resources_total", Help: "Total number of resources applied by action.", }, []string{"name", "namespace", "action"}, ) // PruneResourcesTotal counts resources pruned. PruneResourcesTotal = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "opm_controller_prune_resources_total", Help: "Total number of resources pruned.", }, []string{"name", "namespace"}, ) // InventorySize reports the current inventory entry count. InventorySize = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "opm_controller_inventory_size", Help: "Current number of entries in the inventory.", }, []string{"name", "namespace"}, ) )
Functions ¶
func RecordApply ¶
RecordApply records apply resource counts by action.
func RecordDuration ¶
RecordDuration records only the reconcile duration without an outcome counter. Used for suspend and deletion paths that don't have a reconcile outcome.
func RecordPrune ¶
RecordPrune records the number of resources pruned.
func RecordReconcile ¶
RecordReconcile records the outcome and duration of a reconcile attempt.
func SetInventorySize ¶
SetInventorySize sets the current inventory size gauge.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.