mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-30 17:58:14 +00:00 
			
		
		
		
	cleanup: remove pod_scheduling_duration_seconds
This commit is contained in:
		| @@ -102,9 +102,6 @@ var ( | ||||
| 	InFlightEvents             *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 | ||||
| 	PodSchedulingAttempts           *metrics.Histogram | ||||
| 	FrameworkExtensionPointDuration *metrics.HistogramVec | ||||
| @@ -220,20 +217,6 @@ func InitMetrics() { | ||||
| 			StabilityLevel: metrics.ALPHA, | ||||
| 		}, []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( | ||||
| 		&metrics.HistogramOpts{ | ||||
| 			Subsystem: SchedulerSubsystem, | ||||
| @@ -359,7 +342,6 @@ func InitMetrics() { | ||||
| 		PreemptionVictims, | ||||
| 		PreemptionAttempts, | ||||
| 		pendingPods, | ||||
| 		PodSchedulingDuration, | ||||
| 		PodSchedulingSLIDuration, | ||||
| 		PodSchedulingAttempts, | ||||
| 		FrameworkExtensionPointDuration, | ||||
|   | ||||
| @@ -326,7 +326,6 @@ func (sched *Scheduler) bindingCycle( | ||||
| 	metrics.PodScheduled(fwk.ProfileName(), metrics.SinceInSeconds(start)) | ||||
| 	metrics.PodSchedulingAttempts.Observe(float64(assumedPodInfo.Attempts)) | ||||
| 	if assumedPodInfo.InitialAttemptTimestamp != nil { | ||||
| 		metrics.PodSchedulingDuration.WithLabelValues(getAttemptsLabel(assumedPodInfo)).Observe(metrics.SinceInSeconds(*assumedPodInfo.InitialAttemptTimestamp)) | ||||
| 		metrics.PodSchedulingSLIDuration.WithLabelValues(getAttemptsLabel(assumedPodInfo)).Observe(metrics.SinceInSeconds(*assumedPodInfo.InitialAttemptTimestamp)) | ||||
| 	} | ||||
| 	// Run "postbind" plugins. | ||||
|   | ||||
| @@ -572,36 +572,6 @@ | ||||
|   - 4 | ||||
|   - 8 | ||||
|   - 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 | ||||
|   subsystem: scheduler | ||||
|   help: Total preemption attempts in the cluster till now | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kensei Nakada
					Kensei Nakada