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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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