remove _ssl_expire_time_seconds metric by identifier (#9706)
Signed-off-by: xiayu.lyt <xiayu.lyt@alibaba-inc.com>
This commit is contained in:
parent
d808e38911
commit
b4cae70b52
5 changed files with 31 additions and 17 deletions
|
|
@ -46,7 +46,7 @@ type Collector interface {
|
|||
IncOrphanIngress(string, string, string)
|
||||
DecOrphanIngress(string, string, string)
|
||||
|
||||
RemoveMetrics(ingresses, endpoints, certificates []string)
|
||||
RemoveMetrics(ingresses, certificates []string)
|
||||
|
||||
SetSSLExpireTime([]*ingress.Server)
|
||||
SetSSLInfo(servers []*ingress.Server)
|
||||
|
|
@ -131,9 +131,9 @@ func (c *collector) IncReloadErrorCount() {
|
|||
c.ingressController.IncReloadErrorCount()
|
||||
}
|
||||
|
||||
func (c *collector) RemoveMetrics(ingresses, hosts, certificates []string) {
|
||||
func (c *collector) RemoveMetrics(ingresses, certificates []string) {
|
||||
c.socket.RemoveMetrics(ingresses, c.registry)
|
||||
c.ingressController.RemoveMetrics(hosts, certificates, c.registry)
|
||||
c.ingressController.RemoveMetrics(certificates, c.registry)
|
||||
}
|
||||
|
||||
func (c *collector) Start(admissionStatus string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue