Skip to content

Commit

Permalink
Support new scheduler_pod_scheduling_sli_duration_seconds metric
Browse files Browse the repository at this point in the history
  • Loading branch information
davidor committed Mar 8, 2024
1 parent 9ecc2c9 commit 897d0d7
Show file tree
Hide file tree
Showing 4 changed files with 1,684 additions and 1 deletion.
1 change: 1 addition & 0 deletions kube_scheduler/changelog.d/17110.added
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Support new scheduler_pod_scheduling_sli_duration_seconds metric
12 changes: 11 additions & 1 deletion kube_scheduler/datadog_checks/kube_scheduler/kube_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,21 @@
NEW_1_23_HISTOGRAMS = {
# (from 1.23) Number of attempts to successfully schedule a pod.
'scheduler_pod_scheduling_attempts': 'scheduling.pod.scheduling_attempts',
# (from 1.23) E2e latency for a pod being scheduled which may include multiple scheduling attempts.
# (from 1.23 and deprecated in 1.29.0) E2e latency for a pod being scheduled
# which may include multiple scheduling attempts.
'scheduler_pod_scheduling_duration_seconds': 'scheduling.pod.scheduling_duration',
# (from 1.23) Scheduling attempt latency in seconds (scheduling algorithm + binding).
'scheduler_scheduling_attempt_duration_seconds': 'scheduling.attempt_duration',
}

NEW_1_29_HISTOGRAMS = {
# (from 1.29) E2e latency for a pod being scheduled, from the time the pod
# enters the scheduling queue and might involve multiple scheduling
# attempts.
# This replaces the deprecated "scheduler_pod_scheduling_duration_seconds".
'scheduler_pod_scheduling_sli_duration_seconds': 'scheduling.pod.scheduling_duration',
}

TRANSFORM_VALUE_HISTOGRAMS = {
# (deprecated 1.14)Binding latency
'scheduler_binding_latency_microseconds': 'binding_duration',
Expand Down Expand Up @@ -168,6 +177,7 @@ def __init__(self, name, init_config, instances):
NEW_1_26_GAUGES,
DEPRECARED_SUMMARIES,
NEW_1_23_HISTOGRAMS,
NEW_1_29_HISTOGRAMS,
],
'ignore_metrics': IGNORE_METRICS,
}
Expand Down
Loading

0 comments on commit 897d0d7

Please sign in to comment.