scheduler metrics: change Summary to Histogram

This commit is contained in:
Hongchao Deng 2016-01-04 14:50:49 -08:00
parent 47a21aa285
commit 2744447dba

View File

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