Add promehteus metric about leader election status

This commit is contained in:
Manuel Alejandro de Brito Fontes 2019-03-10 19:12:33 -03:00
parent 476d0106d6
commit 7c717cabcf
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
4 changed files with 42 additions and 0 deletions

View file

@ -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) {}