metrics

package
v0.0.0-...-afb2d77 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CHIInitZeroValues

func CHIInitZeroValues(ctx context.Context, src labelsSource)

func CHIReconcilesAborted

func CHIReconcilesAborted(ctx context.Context, src labelsSource)

func CHIReconcilesCompleted

func CHIReconcilesCompleted(ctx context.Context, src labelsSource)

func CHIReconcilesStarted

func CHIReconcilesStarted(ctx context.Context, src labelsSource)

func CHIReconcilesTimings

func CHIReconcilesTimings(ctx context.Context, src labelsSource, seconds float64)

func CHIRegister

func CHIRegister(ctx context.Context, src labelsSource)

func CHIUnregister

func CHIUnregister(ctx context.Context, src labelsSource)

func HostReconcilesCompleted

func HostReconcilesCompleted(ctx context.Context, src labelsSource)

func HostReconcilesErrors

func HostReconcilesErrors(ctx context.Context, src labelsSource)

func HostReconcilesRestart

func HostReconcilesRestart(ctx context.Context, src labelsSource)

func HostReconcilesStarted

func HostReconcilesStarted(ctx context.Context, src labelsSource)

func HostReconcilesTimings

func HostReconcilesTimings(ctx context.Context, src labelsSource, seconds float64)

func PodAdd

func PodAdd(ctx context.Context)

func PodDelete

func PodDelete(ctx context.Context)

func PodUpdate

func PodUpdate(ctx context.Context)

Types

type Metrics

type Metrics struct {
	// CHIReconcilesStarted is a number (counter) of started CHI reconciles
	CHIReconcilesStarted metric.Int64Counter
	// CHIReconcilesCompleted is a number (counter) of completed CHI reconciles.
	// In ideal world number of completed reconciles should be equal to CHIReconcilesStarted
	CHIReconcilesCompleted metric.Int64Counter
	// CHIReconcilesAborted is a number (counter) of explicitly aborted CHI reconciles.
	// This counter does not includes reconciles that we not completed due to external reasons, such as operator restart
	CHIReconcilesAborted metric.Int64Counter
	// CHIReconcilesTimings is a histogram of durations of successfully completed CHI reconciles
	CHIReconcilesTimings metric.Float64Histogram
	// CHI is a number (counter) of available CHIs
	CHI metric.Int64UpDownCounter

	// HostReconcilesStarted is a number (counter) of started host reconciles
	HostReconcilesStarted metric.Int64Counter
	// HostReconcilesCompleted is a number (counter) of completed host reconciles.
	// In ideal world number of completed reconciles should be equal to HostReconcilesStarted
	HostReconcilesCompleted metric.Int64Counter
	// HostReconcilesRestarts is a number (counter) of host restarts during reconcile
	HostReconcilesRestarts metric.Int64Counter
	// HostReconcilesErrors is a number (counter) of failed (non-completed) host reconciles.
	HostReconcilesErrors metric.Int64Counter
	// HostReconcilesTimings is a histogram of durations of successfully completed host reconciles
	HostReconcilesTimings metric.Float64Histogram

	PodAddEvents    metric.Int64Counter
	PodUpdateEvents metric.Int64Counter
	PodDeleteEvents metric.Int64Counter
}

Metrics is a set of metrics that are tracked by the operator

Jump to

Keyboard shortcuts

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