mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-14 14:23:37 +00:00
updated comments
This commit is contained in:
parent
2987e65a57
commit
5947ee3653
@ -47,12 +47,9 @@ func newControllerMetrics() *ControllerMetrics {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// controller_name and controller_manager should be updated to validate against bounded lists
|
// ControllerStarted sets the controllerInstanceCount to 1.
|
||||||
// this will allow us to confirm they are populated with "good" values.
|
|
||||||
|
|
||||||
// These values use set instead of inc/dec to avoid accidentally double counting
|
// 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.
|
// a controller that starts but fails to properly signal when it crashes.
|
||||||
// ControllerStarted sets the controllerInstanceCount to 1.
|
|
||||||
func (a *ControllerMetrics) ControllerStarted(controllerName string, controllerManager string) {
|
func (a *ControllerMetrics) ControllerStarted(controllerName string, controllerManager string) {
|
||||||
a.controllerInstanceCount.With(k8smetrics.Labels{"controller_name": controllerName, "controller_manager": controllerManager}).Set(float64(1))
|
a.controllerInstanceCount.With(k8smetrics.Labels{"controller_name": controllerName, "controller_manager": controllerManager}).Set(float64(1))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user