scheduler metrics: change Summary to Histogram

pull/6/head
Hongchao Deng 2016-01-04 14:50:49 -08:00
parent 47a21aa285
commit 2744447dba
1 changed files with 9 additions and 9 deletions

View File

@ -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(