diff --git a/internal/btpmanager/credentials/manager.go b/internal/btpmanager/credentials/manager.go index b65d509464..577dc16855 100644 --- a/internal/btpmanager/credentials/manager.go +++ b/internal/btpmanager/credentials/manager.go @@ -150,11 +150,11 @@ func (s *Manager) ReconcileAll(jobReconciliationDelay time.Duration, metrics *Me func (s *Manager) updateMetrics(metrics *Metrics, instance internal.Instance, runtimeSkipped bool) { if metrics != nil { if runtimeSkipped { - metrics.skippedSecrets.With(prometheus.Labels{"runtime": instance.RuntimeID, "state": "skipped"}).Set(float64(1)) - metrics.skippedSecrets.With(prometheus.Labels{"runtime": instance.RuntimeID, "state": "reconciled"}).Set(float64(0)) + metrics.skippedSecrets.With(prometheus.Labels{"shoot": instance.InstanceDetails.ShootName, "state": "skipped"}).Set(float64(1)) + metrics.skippedSecrets.With(prometheus.Labels{"shoot": instance.InstanceDetails.ShootName, "state": "reconciled"}).Set(float64(0)) } else { - metrics.skippedSecrets.With(prometheus.Labels{"runtime": instance.RuntimeID, "state": "reconciled"}).Set(float64(1)) - metrics.skippedSecrets.With(prometheus.Labels{"runtime": instance.RuntimeID, "state": "skipped"}).Set(float64(0)) + metrics.skippedSecrets.With(prometheus.Labels{"shoot": instance.InstanceDetails.ShootName, "state": "reconciled"}).Set(float64(1)) + metrics.skippedSecrets.With(prometheus.Labels{"shoot": instance.InstanceDetails.ShootName, "state": "skipped"}).Set(float64(0)) } } } diff --git a/internal/btpmanager/credentials/metrics.go b/internal/btpmanager/credentials/metrics.go index 2a07907324..2d95ed53ad 100644 --- a/internal/btpmanager/credentials/metrics.go +++ b/internal/btpmanager/credentials/metrics.go @@ -12,7 +12,7 @@ func NewMetrics(reg prometheus.Registerer, namespace string) *Metrics { Namespace: namespace, Name: "reconciled_secrets", Help: "Reconciled secrets.", - }, []string{"runtime", "state"}), + }, []string{"shoot", "state"}), } reg.MustRegister(m.skippedSecrets) return m