mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
scheduler metrics: change Summary to Histogram
This commit is contained in:
parent
47a21aa285
commit
2744447dba
@ -28,28 +28,28 @@ const schedulerSubsystem = "scheduler"
|
|||||||
var BindingSaturationReportInterval = 1 * time.Second
|
var BindingSaturationReportInterval = 1 * time.Second
|
||||||
|
|
||||||
var (
|
var (
|
||||||
E2eSchedulingLatency = prometheus.NewSummary(
|
E2eSchedulingLatency = prometheus.NewHistogram(
|
||||||
prometheus.SummaryOpts{
|
prometheus.HistogramOpts{
|
||||||
Subsystem: schedulerSubsystem,
|
Subsystem: schedulerSubsystem,
|
||||||
Name: "e2e_scheduling_latency_microseconds",
|
Name: "e2e_scheduling_latency_microseconds",
|
||||||
Help: "E2e scheduling latency (scheduling algorithm + binding)",
|
Help: "E2e scheduling latency (scheduling algorithm + binding)",
|
||||||
MaxAge: time.Hour,
|
Buckets: prometheus.ExponentialBuckets(1000, 2, 15),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
SchedulingAlgorithmLatency = prometheus.NewSummary(
|
SchedulingAlgorithmLatency = prometheus.NewHistogram(
|
||||||
prometheus.SummaryOpts{
|
prometheus.HistogramOpts{
|
||||||
Subsystem: schedulerSubsystem,
|
Subsystem: schedulerSubsystem,
|
||||||
Name: "scheduling_algorithm_latency_microseconds",
|
Name: "scheduling_algorithm_latency_microseconds",
|
||||||
Help: "Scheduling algorithm latency",
|
Help: "Scheduling algorithm latency",
|
||||||
MaxAge: time.Hour,
|
Buckets: prometheus.ExponentialBuckets(1000, 2, 15),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
BindingLatency = prometheus.NewSummary(
|
BindingLatency = prometheus.NewHistogram(
|
||||||
prometheus.SummaryOpts{
|
prometheus.HistogramOpts{
|
||||||
Subsystem: schedulerSubsystem,
|
Subsystem: schedulerSubsystem,
|
||||||
Name: "binding_latency_microseconds",
|
Name: "binding_latency_microseconds",
|
||||||
Help: "Binding latency",
|
Help: "Binding latency",
|
||||||
MaxAge: time.Hour,
|
Buckets: prometheus.ExponentialBuckets(1000, 2, 15),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
BindingRateLimiterSaturation = prometheus.NewGauge(
|
BindingRateLimiterSaturation = prometheus.NewGauge(
|
||||||
|
Loading…
Reference in New Issue
Block a user