remove _ssl_expire_time_seconds metric by identifier (#9706)

Signed-off-by: xiayu.lyt <xiayu.lyt@alibaba-inc.com>
This commit is contained in:
Tony Li 2024-04-09 03:32:21 +08:00 committed by GitHub
parent d808e38911
commit b4cae70b52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 31 additions and 17 deletions

View file

@ -253,9 +253,8 @@ func (n *NGINXController) syncIngress(interface{}) error {
}
ri := utilingress.GetRemovedIngresses(n.runningConfig, pcfg)
re := utilingress.GetRemovedHosts(n.runningConfig, pcfg)
rc := utilingress.GetRemovedCertificateSerialNumbers(n.runningConfig, pcfg)
n.metricCollector.RemoveMetrics(ri, re, rc)
n.metricCollector.RemoveMetrics(ri, rc)
n.runningConfig = pcfg