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
Click to show internal directories.
Click to hide internal directories.