mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-12 05:21:58 +00:00
cleanup: remove pod_scheduling_duration_seconds
This commit is contained in:
parent
8fe10dc378
commit
bfea4890c5
@ -102,9 +102,6 @@ var (
|
|||||||
InFlightEvents *metrics.GaugeVec
|
InFlightEvents *metrics.GaugeVec
|
||||||
Goroutines *metrics.GaugeVec
|
Goroutines *metrics.GaugeVec
|
||||||
|
|
||||||
// PodSchedulingDuration is deprecated as of Kubernetes v1.28, and will be removed
|
|
||||||
// in v1.31. Please use PodSchedulingSLIDuration instead.
|
|
||||||
PodSchedulingDuration *metrics.HistogramVec
|
|
||||||
PodSchedulingSLIDuration *metrics.HistogramVec
|
PodSchedulingSLIDuration *metrics.HistogramVec
|
||||||
PodSchedulingAttempts *metrics.Histogram
|
PodSchedulingAttempts *metrics.Histogram
|
||||||
FrameworkExtensionPointDuration *metrics.HistogramVec
|
FrameworkExtensionPointDuration *metrics.HistogramVec
|
||||||
@ -220,20 +217,6 @@ func InitMetrics() {
|
|||||||
StabilityLevel: metrics.ALPHA,
|
StabilityLevel: metrics.ALPHA,
|
||||||
}, []string{"operation"})
|
}, []string{"operation"})
|
||||||
|
|
||||||
// PodSchedulingDuration is deprecated as of Kubernetes v1.28, and will be removed
|
|
||||||
// in v1.31. Please use PodSchedulingSLIDuration instead.
|
|
||||||
PodSchedulingDuration = metrics.NewHistogramVec(
|
|
||||||
&metrics.HistogramOpts{
|
|
||||||
Subsystem: SchedulerSubsystem,
|
|
||||||
Name: "pod_scheduling_duration_seconds",
|
|
||||||
Help: "E2e latency for a pod being scheduled which may include multiple scheduling attempts.",
|
|
||||||
// Start with 10ms with the last bucket being [~88m, Inf).
|
|
||||||
Buckets: metrics.ExponentialBuckets(0.01, 2, 20),
|
|
||||||
StabilityLevel: metrics.STABLE,
|
|
||||||
DeprecatedVersion: "1.29.0",
|
|
||||||
},
|
|
||||||
[]string{"attempts"})
|
|
||||||
|
|
||||||
PodSchedulingSLIDuration = metrics.NewHistogramVec(
|
PodSchedulingSLIDuration = metrics.NewHistogramVec(
|
||||||
&metrics.HistogramOpts{
|
&metrics.HistogramOpts{
|
||||||
Subsystem: SchedulerSubsystem,
|
Subsystem: SchedulerSubsystem,
|
||||||
@ -359,7 +342,6 @@ func InitMetrics() {
|
|||||||
PreemptionVictims,
|
PreemptionVictims,
|
||||||
PreemptionAttempts,
|
PreemptionAttempts,
|
||||||
pendingPods,
|
pendingPods,
|
||||||
PodSchedulingDuration,
|
|
||||||
PodSchedulingSLIDuration,
|
PodSchedulingSLIDuration,
|
||||||
PodSchedulingAttempts,
|
PodSchedulingAttempts,
|
||||||
FrameworkExtensionPointDuration,
|
FrameworkExtensionPointDuration,
|
||||||
|
@ -326,7 +326,6 @@ func (sched *Scheduler) bindingCycle(
|
|||||||
metrics.PodScheduled(fwk.ProfileName(), metrics.SinceInSeconds(start))
|
metrics.PodScheduled(fwk.ProfileName(), metrics.SinceInSeconds(start))
|
||||||
metrics.PodSchedulingAttempts.Observe(float64(assumedPodInfo.Attempts))
|
metrics.PodSchedulingAttempts.Observe(float64(assumedPodInfo.Attempts))
|
||||||
if assumedPodInfo.InitialAttemptTimestamp != nil {
|
if assumedPodInfo.InitialAttemptTimestamp != nil {
|
||||||
metrics.PodSchedulingDuration.WithLabelValues(getAttemptsLabel(assumedPodInfo)).Observe(metrics.SinceInSeconds(*assumedPodInfo.InitialAttemptTimestamp))
|
|
||||||
metrics.PodSchedulingSLIDuration.WithLabelValues(getAttemptsLabel(assumedPodInfo)).Observe(metrics.SinceInSeconds(*assumedPodInfo.InitialAttemptTimestamp))
|
metrics.PodSchedulingSLIDuration.WithLabelValues(getAttemptsLabel(assumedPodInfo)).Observe(metrics.SinceInSeconds(*assumedPodInfo.InitialAttemptTimestamp))
|
||||||
}
|
}
|
||||||
// Run "postbind" plugins.
|
// Run "postbind" plugins.
|
||||||
|
@ -572,36 +572,6 @@
|
|||||||
- 4
|
- 4
|
||||||
- 8
|
- 8
|
||||||
- 16
|
- 16
|
||||||
- name: pod_scheduling_duration_seconds
|
|
||||||
subsystem: scheduler
|
|
||||||
help: E2e latency for a pod being scheduled which may include multiple scheduling
|
|
||||||
attempts.
|
|
||||||
type: Histogram
|
|
||||||
deprecatedVersion: 1.29.0
|
|
||||||
stabilityLevel: STABLE
|
|
||||||
labels:
|
|
||||||
- attempts
|
|
||||||
buckets:
|
|
||||||
- 0.01
|
|
||||||
- 0.02
|
|
||||||
- 0.04
|
|
||||||
- 0.08
|
|
||||||
- 0.16
|
|
||||||
- 0.32
|
|
||||||
- 0.64
|
|
||||||
- 1.28
|
|
||||||
- 2.56
|
|
||||||
- 5.12
|
|
||||||
- 10.24
|
|
||||||
- 20.48
|
|
||||||
- 40.96
|
|
||||||
- 81.92
|
|
||||||
- 163.84
|
|
||||||
- 327.68
|
|
||||||
- 655.36
|
|
||||||
- 1310.72
|
|
||||||
- 2621.44
|
|
||||||
- 5242.88
|
|
||||||
- name: preemption_attempts_total
|
- name: preemption_attempts_total
|
||||||
subsystem: scheduler
|
subsystem: scheduler
|
||||||
help: Total preemption attempts in the cluster till now
|
help: Total preemption attempts in the cluster till now
|
||||||
|
Loading…
Reference in New Issue
Block a user