mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #106266 from ahg-g/ahg-metrics
Move a number of scheduler metrics to STABLE
This commit is contained in:
commit
c9a245fa48
@ -46,7 +46,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const queueMetricMetadata = `
|
const queueMetricMetadata = `
|
||||||
# HELP scheduler_queue_incoming_pods_total [ALPHA] Number of pods added to scheduling queues by event and queue type.
|
# HELP scheduler_queue_incoming_pods_total [STABLE] Number of pods added to scheduling queues by event and queue type.
|
||||||
# TYPE scheduler_queue_incoming_pods_total counter
|
# TYPE scheduler_queue_incoming_pods_total counter
|
||||||
`
|
`
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ var (
|
|||||||
Help: "E2e latency for a pod being scheduled which may include multiple scheduling attempts.",
|
Help: "E2e latency for a pod being scheduled which may include multiple scheduling attempts.",
|
||||||
// Start with 10ms with the last bucket being [~88m, Inf).
|
// Start with 10ms with the last bucket being [~88m, Inf).
|
||||||
Buckets: metrics.ExponentialBuckets(0.01, 2, 20),
|
Buckets: metrics.ExponentialBuckets(0.01, 2, 20),
|
||||||
StabilityLevel: metrics.ALPHA,
|
StabilityLevel: metrics.STABLE,
|
||||||
},
|
},
|
||||||
[]string{"attempts"})
|
[]string{"attempts"})
|
||||||
|
|
||||||
@ -121,7 +121,7 @@ var (
|
|||||||
Name: "pod_scheduling_attempts",
|
Name: "pod_scheduling_attempts",
|
||||||
Help: "Number of attempts to successfully schedule a pod.",
|
Help: "Number of attempts to successfully schedule a pod.",
|
||||||
Buckets: metrics.ExponentialBuckets(1, 2, 5),
|
Buckets: metrics.ExponentialBuckets(1, 2, 5),
|
||||||
StabilityLevel: metrics.ALPHA,
|
StabilityLevel: metrics.STABLE,
|
||||||
})
|
})
|
||||||
|
|
||||||
FrameworkExtensionPointDuration = metrics.NewHistogramVec(
|
FrameworkExtensionPointDuration = metrics.NewHistogramVec(
|
||||||
@ -131,7 +131,7 @@ var (
|
|||||||
Help: "Latency for running all plugins of a specific extension point.",
|
Help: "Latency for running all plugins of a specific extension point.",
|
||||||
// Start with 0.1ms with the last bucket being [~200ms, Inf)
|
// Start with 0.1ms with the last bucket being [~200ms, Inf)
|
||||||
Buckets: metrics.ExponentialBuckets(0.0001, 2, 12),
|
Buckets: metrics.ExponentialBuckets(0.0001, 2, 12),
|
||||||
StabilityLevel: metrics.ALPHA,
|
StabilityLevel: metrics.STABLE,
|
||||||
},
|
},
|
||||||
[]string{"extension_point", "status", "profile"})
|
[]string{"extension_point", "status", "profile"})
|
||||||
|
|
||||||
@ -152,7 +152,7 @@ var (
|
|||||||
Subsystem: SchedulerSubsystem,
|
Subsystem: SchedulerSubsystem,
|
||||||
Name: "queue_incoming_pods_total",
|
Name: "queue_incoming_pods_total",
|
||||||
Help: "Number of pods added to scheduling queues by event and queue type.",
|
Help: "Number of pods added to scheduling queues by event and queue type.",
|
||||||
StabilityLevel: metrics.ALPHA,
|
StabilityLevel: metrics.STABLE,
|
||||||
}, []string{"queue", "event"})
|
}, []string{"queue", "event"})
|
||||||
|
|
||||||
PermitWaitDuration = metrics.NewHistogramVec(
|
PermitWaitDuration = metrics.NewHistogramVec(
|
||||||
|
@ -1,3 +1,25 @@
|
|||||||
|
- name: framework_extension_point_duration_seconds
|
||||||
|
subsystem: scheduler
|
||||||
|
help: Latency for running all plugins of a specific extension point.
|
||||||
|
type: Histogram
|
||||||
|
stabilityLevel: STABLE
|
||||||
|
labels:
|
||||||
|
- extension_point
|
||||||
|
- profile
|
||||||
|
- status
|
||||||
|
buckets:
|
||||||
|
- 0.0001
|
||||||
|
- 0.0002
|
||||||
|
- 0.0004
|
||||||
|
- 0.0008
|
||||||
|
- 0.0016
|
||||||
|
- 0.0032
|
||||||
|
- 0.0064
|
||||||
|
- 0.0128
|
||||||
|
- 0.0256
|
||||||
|
- 0.0512
|
||||||
|
- 0.1024
|
||||||
|
- 0.2048
|
||||||
- name: pending_pods
|
- name: pending_pods
|
||||||
subsystem: scheduler
|
subsystem: scheduler
|
||||||
help: Number of pending pods, by the queue type. 'active' means number of pods in
|
help: Number of pending pods, by the queue type. 'active' means number of pods in
|
||||||
@ -7,6 +29,46 @@
|
|||||||
stabilityLevel: STABLE
|
stabilityLevel: STABLE
|
||||||
labels:
|
labels:
|
||||||
- queue
|
- queue
|
||||||
|
- name: pod_scheduling_attempts
|
||||||
|
subsystem: scheduler
|
||||||
|
help: Number of attempts to successfully schedule a pod.
|
||||||
|
type: Histogram
|
||||||
|
stabilityLevel: STABLE
|
||||||
|
buckets:
|
||||||
|
- 1
|
||||||
|
- 2
|
||||||
|
- 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
|
||||||
|
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
|
||||||
@ -28,6 +90,14 @@
|
|||||||
- 40
|
- 40
|
||||||
- 45
|
- 45
|
||||||
- 50
|
- 50
|
||||||
|
- name: queue_incoming_pods_total
|
||||||
|
subsystem: scheduler
|
||||||
|
help: Number of pods added to scheduling queues by event and queue type.
|
||||||
|
type: Counter
|
||||||
|
stabilityLevel: STABLE
|
||||||
|
labels:
|
||||||
|
- event
|
||||||
|
- queue
|
||||||
- name: schedule_attempts_total
|
- name: schedule_attempts_total
|
||||||
subsystem: scheduler
|
subsystem: scheduler
|
||||||
help: Number of attempts to schedule pods, by the result. 'unschedulable' means
|
help: Number of attempts to schedule pods, by the result. 'unschedulable' means
|
||||||
|
Loading…
Reference in New Issue
Block a user