metrics

package
v0.3.16 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package metrics expose various controller runtime metrics using expvar.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ControllerCrashes counts the number of crashes per controller.
	ControllerCrashes = expvar.NewMap("controller_crashes")

	// ControllerWakeups counts the number of wakeups per controller.
	ControllerWakeups = expvar.NewMap("controller_wakeups")

	// ControllerReads counts the number of reads per controller.
	//
	// Each call to controller.Reader is counted as a single read.
	ControllerReads = expvar.NewMap("controller_reads")

	// ControllerWrites counts the number of writes per controller.
	//
	// Each call to controller.Writer is counted as a single write.
	ControllerWrites = expvar.NewMap("controller_writes")
)

Functions

func WrapState added in v0.3.15

func WrapState(controllerName string, st state.State) state.State

WrapState wraps state.State with metrics for the given controller name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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