metrics

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericObjectSet

type GenericObjectSet interface {
	ClientObject() client.Object
	GetConditions() *[]metav1.Condition
}

type GenericPackage

type GenericPackage interface {
	ClientObject() client.Object
	GetConditions() *[]metav1.Condition
	GetStatusRevision() int64
}

type Recorder

type Recorder struct {
	// contains filtered or unexported fields
}

Recorder stores all the metrics related to Addons.

func NewRecorder

func NewRecorder() *Recorder

func (*Recorder) RecordDynamicCacheInformers

func (r *Recorder) RecordDynamicCacheInformers(total int)

Records the number of active Informers for the cache.

func (*Recorder) RecordDynamicCacheObjects

func (r *Recorder) RecordDynamicCacheObjects(gvk schema.GroupVersionKind, count int)

Records the number of objects in the cache identified by GVK.

func (*Recorder) RecordObjectSetMetrics

func (r *Recorder) RecordObjectSetMetrics(objectSet GenericObjectSet)

func (*Recorder) RecordPackageLoadMetric

func (r *Recorder) RecordPackageLoadMetric(pkg GenericPackage, d time.Duration)

func (*Recorder) RecordPackageMetrics

func (r *Recorder) RecordPackageMetrics(pkg GenericPackage)

func (*Recorder) Register

func (r *Recorder) Register()

Register metrics into ctrl registry.

Jump to

Keyboard shortcuts

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