metrics

package
v1.31.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// PodDeletionsTotal counts the number of Pods deleted by TaintEvictionController since its start.
	PodDeletionsTotal = metrics.NewCounter(
		&metrics.CounterOpts{
			Subsystem:      taintEvictionControllerSubsystem,
			Name:           "pod_deletions_total",
			Help:           "Total number of Pods deleted by TaintEvictionController since its start.",
			StabilityLevel: metrics.ALPHA,
		},
	)

	// PodDeletionsLatency tracks the latency, in seconds, between the time when a taint effect has been activated
	// for the Pod and its deletion.
	PodDeletionsLatency = metrics.NewHistogram(
		&metrics.HistogramOpts{
			Subsystem:      taintEvictionControllerSubsystem,
			Name:           "pod_deletion_duration_seconds",
			Help:           "Latency, in seconds, between the time when a taint effect has been activated for the Pod and its deletion via TaintEvictionController.",
			Buckets:        []float64{0.005, 0.025, 0.1, 0.5, 1, 2.5, 10, 30, 60, 120, 180, 240},
			StabilityLevel: metrics.ALPHA,
		},
	)
)

Functions

func Register

func Register()

Register registers TaintEvictionController metrics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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