Skip to content

Commit bb87f05

Browse files
committed
fix(metrics): label registry_monitor_registries metrics with registry spec, not name as they may be hashed values
1 parent 0ad40d0 commit bb87f05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/controller/collector.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ func (m *kuikMetrics) Register(elected <-chan struct{}, client client.Client) {
130130

131131
for _, registry := range registryMonitorList.Items {
132132
if registry.Status.RegistryStatus == kuikv1alpha1.RegistryStatusUp {
133-
collect(1, registry.Name)
133+
collect(1, registry.Spec.Registry)
134134
} else {
135-
collect(0, registry.Name)
135+
collect(0, registry.Spec.Registry)
136136
}
137137
}
138138
}))

0 commit comments

Comments
 (0)