metrics

package
v0.0.0-...-8ae82f3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLeaderElectionMetric

func NewLeaderElectionMetric(elected <-chan struct{}) manager.Runnable

NewLeaderElectionMetric creates a new leader election metric

Types

type LeaderElectionMetric

type LeaderElectionMetric struct {
	// contains filtered or unexported fields
}

LeaderElectionMetric represents metrics about leader election

func (*LeaderElectionMetric) NeedLeaderElection

func (l *LeaderElectionMetric) NeedLeaderElection() bool

NeedLeaderElection implements controller-runtime's manager.LeaderElectionRunnable.

func (*LeaderElectionMetric) Start

func (l *LeaderElectionMetric) Start(ctx context.Context) error

Start this metrics

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL