metrics

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecordShuffles

func RecordShuffles(ctx context.Context, k8sClient client.Client, node *v1.Node, currentProfile string) error

Actually increment shuffle counters.

func RegisterMaintenanceMetrics

func RegisterMaintenanceMetrics()

func TouchShuffles added in v0.16.1

func TouchShuffles(ctx context.Context, k8sClient client.Client, node *v1.Node, currentProfile string) error

Add zero to shuffle counters as prometheus dislikes missing metrics. This should require less requests than RecordShuffles().

Types

type PromServer

type PromServer struct {
	Address     string
	WaitTimeout time.Duration
	Log         logr.Logger
	// contains filtered or unexported fields
}

func (*PromServer) NeedLeaderElection

func (ps *PromServer) NeedLeaderElection() bool

func (*PromServer) Start

func (ps *PromServer) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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