From 01861282b1d2c4e01787d6e73b9a8213008d3a90 Mon Sep 17 00:00:00 2001 From: SataQiu Date: Thu, 1 Jun 2023 23:28:42 +0800 Subject: [PATCH] controller: fix the help information format of sorting_deletion_age_ratio metric --- pkg/controller/replicaset/metrics/metrics.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/controller/replicaset/metrics/metrics.go b/pkg/controller/replicaset/metrics/metrics.go index 64b3a6dcd3f..8fe43fce23c 100644 --- a/pkg/controller/replicaset/metrics/metrics.go +++ b/pkg/controller/replicaset/metrics/metrics.go @@ -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,