controller-runtimesigs.k8s.io/controller-runtime/pkg/metrics Index | Files | Directories

package metrics

import "sigs.k8s.io/controller-runtime/pkg/metrics"

Package metrics contains controller related metrics utilities

Index

Constants

const (
	WorkQueueSubsystem         = "workqueue"
	DepthKey                   = "depth"
	AddsKey                    = "adds_total"
	QueueLatencyKey            = "queue_duration_seconds"
	WorkDurationKey            = "work_duration_seconds"
	UnfinishedWorkKey          = "unfinished_work_seconds"
	LongestRunningProcessorKey = "longest_running_processor_seconds"
	RetriesKey                 = "retries_total"
)

Metrics subsystem and all keys used by the workqueue.

Types

type RegistererGatherer

type RegistererGatherer interface {
	prometheus.Registerer
	prometheus.Gatherer
}

RegistererGatherer combines both parts of the API of a Prometheus registry, both the Registerer and the Gatherer interfaces.

Registry is a prometheus registry for storing metrics within the controller-runtime.

Source Files

client_go_adapter.go doc.go leaderelection.go registry.go workqueue.go

Directories

PathSynopsis
pkg/metrics/filters
pkg/metrics/serverPackage server provides the metrics server implementation.
Version
v0.21.0 (latest)
Published
May 20, 2025
Platform
linux/amd64
Imports
4 packages
Last checked
24 minutes ago

Tools for package owners.