package controllers
import "k8s.io/component-base/metrics/prometheus/controllers"
Index ¶
Functions ¶
func Register ¶
func Register()
Register controller manager metrics.
Types ¶
type ControllerManagerMetrics ¶
type ControllerManagerMetrics struct {
// contains filtered or unexported fields
}
ControllerManagerMetrics is a proxy to set controller manager specific metrics.
func NewControllerManagerMetrics ¶
func NewControllerManagerMetrics(manager string) *ControllerManagerMetrics
NewControllerManagerMetrics create a new ControllerManagerMetrics, with specific manager name.
func (*ControllerManagerMetrics) ControllerStarted ¶
func (a *ControllerManagerMetrics) ControllerStarted(name 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 (*ControllerManagerMetrics) ControllerStopped ¶
func (a *ControllerManagerMetrics) ControllerStopped(name string)
ControllerStopped sets the controllerInstanceCount to 0.
Source Files ¶
metrics.go
- Version
- v0.24.14
- Published
- May 18, 2023
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 14 seconds ago –
Tools for package owners.