Skip to content

Commit

Permalink
Don't expose certificate metrics for default server
Browse files Browse the repository at this point in the history
The default server has a self signed certificate so it's not important to monitor
  • Loading branch information
gianrubio authored Jun 13, 2017
1 parent f5a6b79 commit b4c8a66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/pkg/ingress/controller/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ func incReloadErrorCount() {
func setSSLExpireTime(servers []*ingress.Server) {

for _, s := range servers {
sslExpireTime.WithLabelValues(s.Hostname).Set(float64(s.SSLExpireTime.Unix()))
if s.Hostname != defServerName {
sslExpireTime.WithLabelValues(s.Hostname).Set(float64(s.SSLExpireTime.Unix()))
}
}

}

0 comments on commit b4c8a66

Please sign in to comment.