Don't expose certificate metrics for default server
The default server has a self signed certificate so it's not important to monitor
This commit is contained in:
parent
f5a6b79dbd
commit
b4c8a66b1f
1 changed files with 3 additions and 1 deletions
|
@ -75,7 +75,9 @@ func incReloadErrorCount() {
|
|||
func setSSLExpireTime(servers []*ingress.Server) {
|
||||
|
||||
for _, s := range servers {
|
||||
if s.Hostname != defServerName {
|
||||
sslExpireTime.WithLabelValues(s.Hostname).Set(float64(s.SSLExpireTime.Unix()))
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue