Merge pull request #92160 from YuikoTakada/add_deprecated_description_scheduling_duration_seconds

Add Deprecated description to metrics scheduling_duration_seconds
This commit is contained in:
Kubernetes Prow Robot 2020-07-09 00:04:48 -07:00 committed by GitHub
commit c2e6e147be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 8 deletions

View File

@ -38,11 +38,12 @@ var (
// VolumeSchedulingStageLatency tracks the latency of volume scheduling operations. // VolumeSchedulingStageLatency tracks the latency of volume scheduling operations.
VolumeSchedulingStageLatency = metrics.NewHistogramVec( VolumeSchedulingStageLatency = metrics.NewHistogramVec(
&metrics.HistogramOpts{ &metrics.HistogramOpts{
Subsystem: VolumeSchedulerSubsystem, Subsystem: VolumeSchedulerSubsystem,
Name: "scheduling_duration_seconds", Name: "scheduling_duration_seconds",
Help: "Volume scheduling stage latency", Help: "Volume scheduling stage latency (Deprecated since 1.19.0)",
Buckets: metrics.ExponentialBuckets(1000, 2, 15), Buckets: metrics.ExponentialBuckets(1000, 2, 15),
StabilityLevel: metrics.ALPHA, StabilityLevel: metrics.ALPHA,
DeprecatedVersion: "1.19.0",
}, },
[]string{"operation"}, []string{"operation"},
) )

View File

@ -59,7 +59,7 @@ var (
&metrics.SummaryOpts{ &metrics.SummaryOpts{
Subsystem: SchedulerSubsystem, Subsystem: SchedulerSubsystem,
Name: DeprecatedSchedulingDurationName, Name: DeprecatedSchedulingDurationName,
Help: "Scheduling latency in seconds split by sub-parts of the scheduling operation", Help: "Scheduling latency in seconds split by sub-parts of the scheduling operation (Deprecated since 1.19.0)",
// Make the sliding window of 5h. // Make the sliding window of 5h.
// TODO: The value for this should be based on some SLI definition (long term). // TODO: The value for this should be based on some SLI definition (long term).
MaxAge: 5 * time.Hour, MaxAge: 5 * time.Hour,
@ -89,7 +89,7 @@ var (
&metrics.HistogramOpts{ &metrics.HistogramOpts{
Subsystem: SchedulerSubsystem, Subsystem: SchedulerSubsystem,
Name: "scheduling_algorithm_predicate_evaluation_seconds", Name: "scheduling_algorithm_predicate_evaluation_seconds",
Help: "Scheduling algorithm predicate evaluation duration in seconds", Help: "Scheduling algorithm predicate evaluation duration in seconds (Deprecated since 1.19.0)",
Buckets: metrics.ExponentialBuckets(0.001, 2, 15), Buckets: metrics.ExponentialBuckets(0.001, 2, 15),
StabilityLevel: metrics.ALPHA, StabilityLevel: metrics.ALPHA,
DeprecatedVersion: "1.19.0", DeprecatedVersion: "1.19.0",
@ -99,7 +99,7 @@ var (
&metrics.HistogramOpts{ &metrics.HistogramOpts{
Subsystem: SchedulerSubsystem, Subsystem: SchedulerSubsystem,
Name: "scheduling_algorithm_priority_evaluation_seconds", Name: "scheduling_algorithm_priority_evaluation_seconds",
Help: "Scheduling algorithm priority evaluation duration in seconds", Help: "Scheduling algorithm priority evaluation duration in seconds (Deprecated since 1.19.0)",
Buckets: metrics.ExponentialBuckets(0.001, 2, 15), Buckets: metrics.ExponentialBuckets(0.001, 2, 15),
StabilityLevel: metrics.ALPHA, StabilityLevel: metrics.ALPHA,
DeprecatedVersion: "1.19.0", DeprecatedVersion: "1.19.0",