Add promehteus metric about leader election status
This commit is contained in:
parent
476d0106d6
commit
7c717cabcf
4 changed files with 42 additions and 0 deletions
|
|
@ -52,3 +52,9 @@ func (dc DummyCollector) SetSSLExpireTime([]*ingress.Server) {}
|
|||
|
||||
// SetHosts ...
|
||||
func (dc DummyCollector) SetHosts(hosts sets.String) {}
|
||||
|
||||
// OnStartedLeading indicates the pod is not the current leader
|
||||
func (dc DummyCollector) OnStartedLeading(electionID string) {}
|
||||
|
||||
// OnStoppedLeading indicates the pod is not the current leader
|
||||
func (dc DummyCollector) OnStoppedLeading(electionID string) {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue