metrics

package
v0.0.0-...-f5de34e Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 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