mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
updated help field to better indicate metric intent
This commit is contained in:
parent
daf7edb8f4
commit
9529c8ff8e
@ -32,17 +32,16 @@ type ControllerMetrics struct {
|
||||
controllerInstanceCount *k8smetrics.GaugeVec
|
||||
}
|
||||
|
||||
// newControllerMetrics create a new ControllerMetrics, configured with default metric names.
|
||||
// NewControllerMetrics create a new ControllerMetrics, configured with default metric names.
|
||||
func NewControllerMetrics() *ControllerMetrics {
|
||||
controllerInstanceCount := k8smetrics.NewGaugeVec(
|
||||
&k8smetrics.GaugeOpts{
|
||||
Name: "managed_controller_instances",
|
||||
Help: "Instances of individual controllers currently running",
|
||||
Help: "Indicates where instances of a controller are currently running",
|
||||
StabilityLevel: k8smetrics.ALPHA,
|
||||
},
|
||||
[]string{"name", "manager"},
|
||||
)
|
||||
//legacyregistry.MustRegister(controllerInstanceCount)
|
||||
controllerMetrics := &ControllerMetrics{
|
||||
controllerInstanceCount: controllerInstanceCount,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user