monitoring

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: Apache-2.0 Imports: 9 Imported by: 3 modules, 14 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

func AddToScheme

func AddToScheme(scheme *runtime.Scheme) error

AddToScheme adds monitoring types to the scheme.

func NewInstrumentedReconciler added in v1.3.0

func NewInstrumentedReconciler(rec reconcile.Reconciler, gvk schema.GroupVersionKind) reconcile.Reconciler

Types

type Timer added in v1.3.0

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

Timer is a helper type to time functions. Use NewTimer to create new instances.

func NewTimer added in v1.3.0

func NewTimer() *Timer

NewTimer creates a new Timer.

func (*Timer) ObserveDurationInSeconds added in v1.3.0

func (t *Timer) ObserveDurationInSeconds(o prometheus.Observer) time.Duration

ObserveDurationInSeconds records the duration passed since the Timer was created with NewTimer. It calls the Observe method of the provided Observer. The observed duration is also returned.

Jump to

Keyboard shortcuts

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