Merge pull request #118381 from SataQiu/fix-controller-20230601

controller: fix the help information format of sorting_deletion_age_ratio metric
This commit is contained in:
Kubernetes Prow Robot 2023-10-24 15:04:25 +02:00 committed by GitHub
commit cdd20eebb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,8 +26,8 @@ var SortingDeletionAgeRatio = metrics.NewHistogram(
&metrics.HistogramOpts{ &metrics.HistogramOpts{
Subsystem: ReplicaSetControllerSubsystem, Subsystem: ReplicaSetControllerSubsystem,
Name: "sorting_deletion_age_ratio", 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." + 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 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.", "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), Buckets: metrics.ExponentialBuckets(0.25, 2, 6),
StabilityLevel: metrics.ALPHA, StabilityLevel: metrics.ALPHA,