Back to godoc.org

Package metrics

v0.6.2
Latest Go to latest

The latest major version is .

Published: Aug 4, 2020 | License: Apache-2.0 | Module: sigs.k8s.io/controller-runtime

Overview

Package metrics contains controller related metrics utilities

Index

Constants

const (
	RestClientSubsystem = "rest_client"
	LatencyKey          = "request_latency_seconds"
	ResultKey           = "requests_total"
)

Metrics subsystem and all of the keys used by the rest client.

const (
	ReflectorSubsystem     = "reflector"
	ListsTotalKey          = "lists_total"
	ListsDurationKey       = "list_duration_seconds"
	ItemsPerListKey        = "items_per_list"
	WatchesTotalKey        = "watches_total"
	ShortWatchesTotalKey   = "short_watches_total"
	WatchDurationKey       = "watch_duration_seconds"
	ItemsPerWatchKey       = "items_per_watch"
	LastResourceVersionKey = "last_resource_version"
)

Metrics subsystem and all keys used by the reflectors.

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.

Variables

var DefaultBindAddress = ":8080"

DefaultBindAddress sets the default bind address for the metrics listener The metrics is on by default.

func NewListener

func NewListener(addr string) (net.Listener, error)

NewListener creates a new TCP listener bound to the given address.

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.

var Registry RegistererGatherer = prometheus.NewRegistry()

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier