Mark deprecated in related dockershim metrics

This commit is contained in:
danielqsj 2019-01-08 15:24:44 +08:00
parent 65aec219c8
commit 7aef2efe5b
2 changed files with 5 additions and 5 deletions

View File

@ -93,7 +93,7 @@ var (
prometheus.SummaryOpts{ prometheus.SummaryOpts{
Subsystem: kubeletSubsystem, Subsystem: kubeletSubsystem,
Name: DeprecatedDockerOperationsLatencyKey, Name: DeprecatedDockerOperationsLatencyKey,
Help: "Latency in microseconds of Docker operations. Broken down by operation type.", Help: "(Deprecated) Latency in microseconds of Docker operations. Broken down by operation type.",
}, },
[]string{"operation_type"}, []string{"operation_type"},
) )
@ -102,7 +102,7 @@ var (
prometheus.CounterOpts{ prometheus.CounterOpts{
Subsystem: kubeletSubsystem, Subsystem: kubeletSubsystem,
Name: DeprecatedDockerOperationsKey, Name: DeprecatedDockerOperationsKey,
Help: "Cumulative number of Docker operations by operation type.", Help: "(Deprecated) Cumulative number of Docker operations by operation type.",
}, },
[]string{"operation_type"}, []string{"operation_type"},
) )
@ -112,7 +112,7 @@ var (
prometheus.CounterOpts{ prometheus.CounterOpts{
Subsystem: kubeletSubsystem, Subsystem: kubeletSubsystem,
Name: DeprecatedDockerOperationsErrorsKey, Name: DeprecatedDockerOperationsErrorsKey,
Help: "Cumulative number of Docker operation errors by operation type.", Help: "(Deprecated) Cumulative number of Docker operation errors by operation type.",
}, },
[]string{"operation_type"}, []string{"operation_type"},
) )
@ -121,7 +121,7 @@ var (
prometheus.CounterOpts{ prometheus.CounterOpts{
Subsystem: kubeletSubsystem, Subsystem: kubeletSubsystem,
Name: DeprecatedDockerOperationsTimeoutKey, Name: DeprecatedDockerOperationsTimeoutKey,
Help: "Cumulative number of Docker operation timeout by operation type.", Help: "(Deprecated) Cumulative number of Docker operation timeout by operation type.",
}, },
[]string{"operation_type"}, []string{"operation_type"},
) )

View File

@ -54,7 +54,7 @@ var (
prometheus.SummaryOpts{ prometheus.SummaryOpts{
Subsystem: kubeletSubsystem, Subsystem: kubeletSubsystem,
Name: DeprecatedNetworkPluginOperationsLatencyKey, Name: DeprecatedNetworkPluginOperationsLatencyKey,
Help: "Latency in microseconds of network plugin operations. Broken down by operation type.", Help: "(Deprecated) Latency in microseconds of network plugin operations. Broken down by operation type.",
}, },
[]string{"operation_type"}, []string{"operation_type"},
) )