metrics

package
v0.62.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionFinished

func ActionFinished(actionType string, success bool, duration time.Duration)

func ActionStarted added in v0.61.0

func ActionStarted(actionType string)

func Gather added in v0.60.0

func Gather() ([]*dto.MetricFamily, error)

Gather gets all current metric series registered at the Registry.

func GetRegistry added in v0.62.0

func GetRegistry() prometheus.Registerer

GetRegistry returns the prometheus registry for registering additional metrics.

func IncrementInformerCacheSyncs added in v0.61.0

func IncrementInformerCacheSyncs(resource, status string)

func NewMetricsMux

func NewMetricsMux() *http.ServeMux

func RegisterCustomMetrics

func RegisterCustomMetrics()

func SetInformerCacheSize added in v0.61.0

func SetInformerCacheSize(resource string, size int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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