metrics

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RuntimeIDLabel                 = "kyma-project.io/runtime-id"
	ShootNameLabel                 = "kyma-project.io/shoot-name"
	GardenerClusterStateMetricName = "im_gardener_clusters_state"
	RuntimeStateMetricName         = "im_runtime_state"
	RuntimeFSMStopMetricName       = "unexpected_stops_total"

	KubeconfigExpirationMetricName = "im_kubeconfig_expiration"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics interface {
	SetRuntimeStates(runtime v1.Runtime)
	CleanUpRuntimeGauge(runtimeID, runtimeName string)
	ResetRuntimeMetrics()
	IncRuntimeFSMStopCounter()
	SetGardenerClusterStates(cluster v1.GardenerCluster)
	CleanUpGardenerClusterGauge(runtimeID string)
	CleanUpKubeconfigExpiration(runtimeID string)
	SetKubeconfigExpiration(secret corev1.Secret, rotationPeriod time.Duration, minimalRotationTimeRatio float64)
}

func NewMetrics

func NewMetrics() Metrics

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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