Metrics: Fix namespace in nginx_ingress_controller_ssl_expire_time_seconds. (#10274)

This commit is contained in:
alexey-gavrilov-flant 2024-09-17 22:12:43 +03:00 committed by GitHub
parent 2cbe9b0610
commit 9e6c40664f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -305,6 +305,7 @@ func (cm *Controller) SetSSLExpireTime(servers []*ingress.Server) {
}
labels["host"] = s.Hostname
labels["secret_name"] = s.SSLCert.Name
labels["namespace"] = s.SSLCert.Namespace
labels["identifier"] = s.SSLCert.Identifier()
cm.sslExpireTime.With(labels).Set(float64(s.SSLCert.ExpireTime.Unix()))