metrics

package
v1.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 NewRecorder(register bool, clusterId string) *Recorder

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 - addon_operator_addon_health_info

func (*Recorder) RecordOCMAPIRequests

func (r *Recorder) RecordOCMAPIRequests(us float64)

func (*Recorder) SetAddonOperatorPaused

func (r *Recorder) SetAddonOperatorPaused(paused bool)

SetAddonOperatorPaused sets the `addon_operator_paused` metric 0 - Not paused , 1 - Paused

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL