func Register()
Register controller manager metrics.
ControllerManagerMetrics is a proxy to set controller manager specific metrics.
type ControllerManagerMetrics struct {
// contains filtered or unexported fields
}
func NewControllerManagerMetrics(manager string) *ControllerManagerMetrics
NewControllerManagerMetrics create a new ControllerManagerMetrics, with specific manager name.
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 (a *ControllerManagerMetrics) ControllerStopped(name string)
ControllerStopped sets the controllerInstanceCount to 0.