controller: fix the help information format of sorting_deletion_age_ratio metric

This commit is contained in:
SataQiu 2023-06-01 23:28:42 +08:00
parent 33a2438de9
commit 01861282b1

View File

@ -26,8 +26,8 @@ var SortingDeletionAgeRatio = metrics.NewHistogram(
&metrics.HistogramOpts{
Subsystem: ReplicaSetControllerSubsystem,
Name: "sorting_deletion_age_ratio",
Help: "The ratio of chosen deleted pod's ages to the current youngest pod's age (at the time). Should be <2." +
"The intent of this metric is to measure the rough efficacy of the LogarithmicScaleDown feature gate's effect on" +
Help: "The ratio of chosen deleted pod's ages to the current youngest pod's age (at the time). Should be <2. " +
"The intent of this metric is to measure the rough efficacy of the LogarithmicScaleDown feature gate's effect on " +
"the sorting (and deletion) of pods when a replicaset scales down. This only considers Ready pods when calculating and reporting.",
Buckets: metrics.ExponentialBuckets(0.25, 2, 6),
StabilityLevel: metrics.ALPHA,