var leaderGauge … var leaderSlowpathCounter … func init() { … } type prometheusMetricsProvider … func (prometheusMetricsProvider) NewLeaderMetric() leaderelection.LeaderMetric { … } type leaderAdapter … func (s *leaderAdapter) On(name string) { … } func (s *leaderAdapter) Off(name string) { … } func (s *leaderAdapter) SlowpathExercised(name string) { … }