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