mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-17 15:50:10 +00:00
Move docker metrics to histogram metrics
This commit is contained in:
parent
94d1050303
commit
65aec219c8
@ -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 (
|
|||||||
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"},
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user