component-basek8s.io/component-base/metrics/prometheus/controllers Index | Files

package controllers

import "k8s.io/component-base/metrics/prometheus/controllers"

Index

Types

type ControllerMetrics

type ControllerMetrics struct {
	// contains filtered or unexported fields
}

ControllerMetrics includes all the metrics of the proxy server.

func NewControllerMetrics

func NewControllerMetrics() *ControllerMetrics

NewControllerMetrics create a new ControllerMetrics, configured with default metric names.

func (*ControllerMetrics) ControllerStarted

func (a *ControllerMetrics) ControllerStarted(name string, manager string)

ControllerStarted sets the controllerInstanceCount to 1. These values use set instead of inc/dec to avoid accidentally double counting a controller that starts but fails to properly signal when it crashes.

func (*ControllerMetrics) ControllerStopped

func (a *ControllerMetrics) ControllerStopped(name string, manager string)

ControllerStopped sets the controllerInstanceCount to 0.

func (*ControllerMetrics) Register

func (a *ControllerMetrics) Register()

Source Files

metrics.go

Version
v0.24.0-alpha.3
Published
Feb 16, 2022
Platform
js/wasm
Imports
3 packages
Last checked
1 minute ago

Tools for package owners.