Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
Recorder stores all the metrics related to Addons.
func NewRecorder ¶
func (*Recorder) InjectOCMAPIRequestDuration ¶
func (r *Recorder) InjectOCMAPIRequestDuration(s prometheus.Summary)
InjectOCMAPIRequestDuration allows us to override `r.ocmAPIRequestDuration` metric Useful while writing tests
func (*Recorder) RecordAddonMetrics ¶
func (r *Recorder) RecordAddonMetrics(addon *addonsv1alpha1.Addon)
RecordAddonMetrics is responsible for reconciling the following metrics: - addon_operator_addons_available - addon_operator_addons_paused - addon_operator_addons_total
func (*Recorder) RecordOCMAPIRequests ¶
func (*Recorder) SetAddonOperatorPaused ¶
SetAddonOperatorPaused sets the `addon_operator_paused` metric 0 - Not paused , 1 - Paused
Click to show internal directories.
Click to hide internal directories.