Commit 65aec219 authored by danielqsj's avatar danielqsj

Move docker metrics to histogram metrics

parent 94d10503
...@@ -49,11 +49,12 @@ const ( ...@@ -49,11 +49,12 @@ const (
var ( var (
// DockerOperationsLatency collects operation latency numbers by operation // DockerOperationsLatency collects operation latency numbers by operation
// type. // type.
DockerOperationsLatency = prometheus.NewSummaryVec( DockerOperationsLatency = prometheus.NewHistogramVec(
prometheus.SummaryOpts{ prometheus.HistogramOpts{
Subsystem: kubeletSubsystem, Subsystem: kubeletSubsystem,
Name: DockerOperationsLatencyKey, Name: DockerOperationsLatencyKey,
Help: "Latency in seconds of Docker operations. Broken down by operation type.", Help: "Latency in seconds of Docker operations. Broken down by operation type.",
Buckets: prometheus.DefBuckets,
}, },
[]string{"operation_type"}, []string{"operation_type"},
) )
......
...@@ -38,11 +38,12 @@ const ( ...@@ -38,11 +38,12 @@ const (
var ( var (
// NetworkPluginOperationsLatency collects operation latency numbers by operation // NetworkPluginOperationsLatency collects operation latency numbers by operation
// type. // type.
NetworkPluginOperationsLatency = prometheus.NewSummaryVec( NetworkPluginOperationsLatency = prometheus.NewHistogramVec(
prometheus.SummaryOpts{ prometheus.HistogramOpts{
Subsystem: kubeletSubsystem, Subsystem: kubeletSubsystem,
Name: NetworkPluginOperationsLatencyKey, Name: NetworkPluginOperationsLatencyKey,
Help: "Latency in seconds of network plugin operations. Broken down by operation type.", Help: "Latency in seconds of network plugin operations. Broken down by operation type.",
Buckets: prometheus.DefBuckets,
}, },
[]string{"operation_type"}, []string{"operation_type"},
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment