Hide kubelet metrics that have been deprecated in 1.14

This commit is contained in:
RainbowMango 2019-10-12 20:13:32 +08:00
parent eedfb6bc7a
commit 30bf1f47dd
3 changed files with 85 additions and 68 deletions

View File

@ -96,20 +96,22 @@ var (
// type. // type.
DeprecatedDockerOperationsLatency = metrics.NewSummaryVec( DeprecatedDockerOperationsLatency = metrics.NewSummaryVec(
&metrics.SummaryOpts{ &metrics.SummaryOpts{
Subsystem: kubeletSubsystem, Subsystem: kubeletSubsystem,
Name: DeprecatedDockerOperationsLatencyKey, Name: DeprecatedDockerOperationsLatencyKey,
Help: "(Deprecated) Latency in microseconds of Docker operations. Broken down by operation type.", Help: "Latency in microseconds of Docker operations. Broken down by operation type.",
StabilityLevel: metrics.ALPHA, StabilityLevel: metrics.ALPHA,
DeprecatedVersion: "1.14.0",
}, },
[]string{"operation_type"}, []string{"operation_type"},
) )
// DeprecatedDockerOperations collects operation counts by operation type. // DeprecatedDockerOperations collects operation counts by operation type.
DeprecatedDockerOperations = metrics.NewCounterVec( DeprecatedDockerOperations = metrics.NewCounterVec(
&metrics.CounterOpts{ &metrics.CounterOpts{
Subsystem: kubeletSubsystem, Subsystem: kubeletSubsystem,
Name: DeprecatedDockerOperationsKey, Name: DeprecatedDockerOperationsKey,
Help: "(Deprecated) Cumulative number of Docker operations by operation type.", Help: "Cumulative number of Docker operations by operation type.",
StabilityLevel: metrics.ALPHA, StabilityLevel: metrics.ALPHA,
DeprecatedVersion: "1.14.0",
}, },
[]string{"operation_type"}, []string{"operation_type"},
) )
@ -117,20 +119,22 @@ var (
// type. // type.
DeprecatedDockerOperationsErrors = metrics.NewCounterVec( DeprecatedDockerOperationsErrors = metrics.NewCounterVec(
&metrics.CounterOpts{ &metrics.CounterOpts{
Subsystem: kubeletSubsystem, Subsystem: kubeletSubsystem,
Name: DeprecatedDockerOperationsErrorsKey, Name: DeprecatedDockerOperationsErrorsKey,
Help: "(Deprecated) Cumulative number of Docker operation errors by operation type.", Help: "Cumulative number of Docker operation errors by operation type.",
StabilityLevel: metrics.ALPHA, StabilityLevel: metrics.ALPHA,
DeprecatedVersion: "1.14.0",
}, },
[]string{"operation_type"}, []string{"operation_type"},
) )
// DeprecatedDockerOperationsTimeout collects operation timeouts by operation type. // DeprecatedDockerOperationsTimeout collects operation timeouts by operation type.
DeprecatedDockerOperationsTimeout = metrics.NewCounterVec( DeprecatedDockerOperationsTimeout = metrics.NewCounterVec(
&metrics.CounterOpts{ &metrics.CounterOpts{
Subsystem: kubeletSubsystem, Subsystem: kubeletSubsystem,
Name: DeprecatedDockerOperationsTimeoutKey, Name: DeprecatedDockerOperationsTimeoutKey,
Help: "(Deprecated) Cumulative number of Docker operation timeout by operation type.", Help: "Cumulative number of Docker operation timeout by operation type.",
StabilityLevel: metrics.ALPHA, StabilityLevel: metrics.ALPHA,
DeprecatedVersion: "1.14.0",
}, },
[]string{"operation_type"}, []string{"operation_type"},
) )

View File

@ -54,10 +54,11 @@ var (
// type. // type.
DeprecatedNetworkPluginOperationsLatency = metrics.NewSummaryVec( DeprecatedNetworkPluginOperationsLatency = metrics.NewSummaryVec(
&metrics.SummaryOpts{ &metrics.SummaryOpts{
Subsystem: kubeletSubsystem, Subsystem: kubeletSubsystem,
Name: DeprecatedNetworkPluginOperationsLatencyKey, Name: DeprecatedNetworkPluginOperationsLatencyKey,
Help: "(Deprecated) Latency in microseconds of network plugin operations. Broken down by operation type.", Help: "Latency in microseconds of network plugin operations. Broken down by operation type.",
StabilityLevel: metrics.ALPHA, StabilityLevel: metrics.ALPHA,
DeprecatedVersion: "1.14.0",
}, },
[]string{"operation_type"}, []string{"operation_type"},
) )

View File

@ -283,10 +283,11 @@ var (
// Broken down by operation type. This metric is deprecated. // Broken down by operation type. This metric is deprecated.
DeprecatedPodWorkerLatency = metrics.NewSummaryVec( DeprecatedPodWorkerLatency = metrics.NewSummaryVec(
&metrics.SummaryOpts{ &metrics.SummaryOpts{
Subsystem: KubeletSubsystem, Subsystem: KubeletSubsystem,
Name: DeprecatedPodWorkerLatencyKey, Name: DeprecatedPodWorkerLatencyKey,
Help: "(Deprecated) Latency in microseconds to sync a single pod. Broken down by operation type: create, update, or sync", Help: "Latency in microseconds to sync a single pod. Broken down by operation type: create, update, or sync",
StabilityLevel: metrics.ALPHA, StabilityLevel: metrics.ALPHA,
DeprecatedVersion: "1.14.0",
}, },
[]string{"operation_type"}, []string{"operation_type"},
) )
@ -294,20 +295,22 @@ var (
// This metric is deprecated. // This metric is deprecated.
DeprecatedPodStartLatency = metrics.NewSummary( DeprecatedPodStartLatency = metrics.NewSummary(
&metrics.SummaryOpts{ &metrics.SummaryOpts{
Subsystem: KubeletSubsystem, Subsystem: KubeletSubsystem,
Name: DeprecatedPodStartLatencyKey, Name: DeprecatedPodStartLatencyKey,
Help: "(Deprecated) Latency in microseconds for a single pod to go from pending to running.", Help: "Latency in microseconds for a single pod to go from pending to running.",
StabilityLevel: metrics.ALPHA, StabilityLevel: metrics.ALPHA,
DeprecatedVersion: "1.14.0",
}, },
) )
// DeprecatedCgroupManagerLatency is a Summary that tracks the latency (in microseconds) for cgroup manager operations to complete. // DeprecatedCgroupManagerLatency is a Summary that tracks the latency (in microseconds) for cgroup manager operations to complete.
// Broken down by operation type. This metric is deprecated. // Broken down by operation type. This metric is deprecated.
DeprecatedCgroupManagerLatency = metrics.NewSummaryVec( DeprecatedCgroupManagerLatency = metrics.NewSummaryVec(
&metrics.SummaryOpts{ &metrics.SummaryOpts{
Subsystem: KubeletSubsystem, Subsystem: KubeletSubsystem,
Name: DeprecatedCgroupManagerOperationsKey, Name: DeprecatedCgroupManagerOperationsKey,
Help: "(Deprecated) Latency in microseconds for cgroup manager operations. Broken down by method.", Help: "Latency in microseconds for cgroup manager operations. Broken down by method.",
StabilityLevel: metrics.ALPHA, StabilityLevel: metrics.ALPHA,
DeprecatedVersion: "1.14.0",
}, },
[]string{"operation_type"}, []string{"operation_type"},
) )
@ -315,40 +318,44 @@ var (
// This metric is deprecated. // This metric is deprecated.
DeprecatedPodWorkerStartLatency = metrics.NewSummary( DeprecatedPodWorkerStartLatency = metrics.NewSummary(
&metrics.SummaryOpts{ &metrics.SummaryOpts{
Subsystem: KubeletSubsystem, Subsystem: KubeletSubsystem,
Name: DeprecatedPodWorkerStartLatencyKey, Name: DeprecatedPodWorkerStartLatencyKey,
Help: "(Deprecated) Latency in microseconds from seeing a pod to starting a worker.", Help: "Latency in microseconds from seeing a pod to starting a worker.",
StabilityLevel: metrics.ALPHA, StabilityLevel: metrics.ALPHA,
DeprecatedVersion: "1.14.0",
}, },
) )
// DeprecatedPLEGRelistLatency is a Summary that tracks the latency (in microseconds) for relisting pods in PLEG. // DeprecatedPLEGRelistLatency is a Summary that tracks the latency (in microseconds) for relisting pods in PLEG.
// This metric is deprecated. // This metric is deprecated.
DeprecatedPLEGRelistLatency = metrics.NewSummary( DeprecatedPLEGRelistLatency = metrics.NewSummary(
&metrics.SummaryOpts{ &metrics.SummaryOpts{
Subsystem: KubeletSubsystem, Subsystem: KubeletSubsystem,
Name: DeprecatedPLEGRelistLatencyKey, Name: DeprecatedPLEGRelistLatencyKey,
Help: "(Deprecated) Latency in microseconds for relisting pods in PLEG.", Help: "Latency in microseconds for relisting pods in PLEG.",
StabilityLevel: metrics.ALPHA, StabilityLevel: metrics.ALPHA,
DeprecatedVersion: "1.14.0",
}, },
) )
// DeprecatedPLEGRelistInterval is a Summary that tracks the interval (in microseconds) between relistings in PLEG. // DeprecatedPLEGRelistInterval is a Summary that tracks the interval (in microseconds) between relistings in PLEG.
// This metric is deprecated. // This metric is deprecated.
DeprecatedPLEGRelistInterval = metrics.NewSummary( DeprecatedPLEGRelistInterval = metrics.NewSummary(
&metrics.SummaryOpts{ &metrics.SummaryOpts{
Subsystem: KubeletSubsystem, Subsystem: KubeletSubsystem,
Name: DeprecatedPLEGRelistIntervalKey, Name: DeprecatedPLEGRelistIntervalKey,
Help: "(Deprecated) Interval in microseconds between relisting in PLEG.", Help: "Interval in microseconds between relisting in PLEG.",
StabilityLevel: metrics.ALPHA, StabilityLevel: metrics.ALPHA,
DeprecatedVersion: "1.14.0",
}, },
) )
// DeprecatedRuntimeOperations is a Counter that tracks the cumulative number of remote runtime operations. // DeprecatedRuntimeOperations is a Counter that tracks the cumulative number of remote runtime operations.
// Broken down by operation type. This metric is deprecated. // Broken down by operation type. This metric is deprecated.
DeprecatedRuntimeOperations = metrics.NewCounterVec( DeprecatedRuntimeOperations = metrics.NewCounterVec(
&metrics.CounterOpts{ &metrics.CounterOpts{
Subsystem: KubeletSubsystem, Subsystem: KubeletSubsystem,
Name: DeprecatedRuntimeOperationsKey, Name: DeprecatedRuntimeOperationsKey,
Help: "(Deprecated) Cumulative number of runtime operations by operation type.", Help: "Cumulative number of runtime operations by operation type.",
StabilityLevel: metrics.ALPHA, StabilityLevel: metrics.ALPHA,
DeprecatedVersion: "1.14.0",
}, },
[]string{"operation_type"}, []string{"operation_type"},
) )
@ -356,10 +363,11 @@ var (
// to complete. Broken down by operation type. This metric is deprecated. // to complete. Broken down by operation type. This metric is deprecated.
DeprecatedRuntimeOperationsLatency = metrics.NewSummaryVec( DeprecatedRuntimeOperationsLatency = metrics.NewSummaryVec(
&metrics.SummaryOpts{ &metrics.SummaryOpts{
Subsystem: KubeletSubsystem, Subsystem: KubeletSubsystem,
Name: DeprecatedRuntimeOperationsLatencyKey, Name: DeprecatedRuntimeOperationsLatencyKey,
Help: "(Deprecated) Latency in microseconds of runtime operations. Broken down by operation type.", Help: "Latency in microseconds of runtime operations. Broken down by operation type.",
StabilityLevel: metrics.ALPHA, StabilityLevel: metrics.ALPHA,
DeprecatedVersion: "1.14.0",
}, },
[]string{"operation_type"}, []string{"operation_type"},
) )
@ -367,10 +375,11 @@ var (
// Broken down by operation type. This metric is deprecated. // Broken down by operation type. This metric is deprecated.
DeprecatedRuntimeOperationsErrors = metrics.NewCounterVec( DeprecatedRuntimeOperationsErrors = metrics.NewCounterVec(
&metrics.CounterOpts{ &metrics.CounterOpts{
Subsystem: KubeletSubsystem, Subsystem: KubeletSubsystem,
Name: DeprecatedRuntimeOperationsErrorsKey, Name: DeprecatedRuntimeOperationsErrorsKey,
Help: "(Deprecated) Cumulative number of runtime operation errors by operation type.", Help: "Cumulative number of runtime operation errors by operation type.",
StabilityLevel: metrics.ALPHA, StabilityLevel: metrics.ALPHA,
DeprecatedVersion: "1.14.0",
}, },
[]string{"operation_type"}, []string{"operation_type"},
) )
@ -378,10 +387,11 @@ var (
// is evicted based on those stats. Broken down by eviction signal. This metric is deprecated. // is evicted based on those stats. Broken down by eviction signal. This metric is deprecated.
DeprecatedEvictionStatsAge = metrics.NewSummaryVec( DeprecatedEvictionStatsAge = metrics.NewSummaryVec(
&metrics.SummaryOpts{ &metrics.SummaryOpts{
Subsystem: KubeletSubsystem, Subsystem: KubeletSubsystem,
Name: DeprecatedEvictionStatsAgeKey, Name: DeprecatedEvictionStatsAgeKey,
Help: "(Deprecated) Time between when stats are collected, and when pod is evicted based on those stats by eviction signal", Help: "Time between when stats are collected, and when pod is evicted based on those stats by eviction signal",
StabilityLevel: metrics.ALPHA, StabilityLevel: metrics.ALPHA,
DeprecatedVersion: "1.14.0",
}, },
[]string{"eviction_signal"}, []string{"eviction_signal"},
) )
@ -389,10 +399,11 @@ var (
// Broken down by resource name. This metric is deprecated. // Broken down by resource name. This metric is deprecated.
DeprecatedDevicePluginRegistrationCount = metrics.NewCounterVec( DeprecatedDevicePluginRegistrationCount = metrics.NewCounterVec(
&metrics.CounterOpts{ &metrics.CounterOpts{
Subsystem: KubeletSubsystem, Subsystem: KubeletSubsystem,
Name: DeprecatedDevicePluginRegistrationCountKey, Name: DeprecatedDevicePluginRegistrationCountKey,
Help: "(Deprecated) Cumulative number of device plugin registrations. Broken down by resource name.", Help: "Cumulative number of device plugin registrations. Broken down by resource name.",
StabilityLevel: metrics.ALPHA, StabilityLevel: metrics.ALPHA,
DeprecatedVersion: "1.14.0",
}, },
[]string{"resource_name"}, []string{"resource_name"},
) )
@ -400,10 +411,11 @@ var (
// Broken down by resource name. This metric is deprecated. // Broken down by resource name. This metric is deprecated.
DeprecatedDevicePluginAllocationLatency = metrics.NewSummaryVec( DeprecatedDevicePluginAllocationLatency = metrics.NewSummaryVec(
&metrics.SummaryOpts{ &metrics.SummaryOpts{
Subsystem: KubeletSubsystem, Subsystem: KubeletSubsystem,
Name: DeprecatedDevicePluginAllocationLatencyKey, Name: DeprecatedDevicePluginAllocationLatencyKey,
Help: "(Deprecated) Latency in microseconds to serve a device plugin Allocation request. Broken down by resource name.", Help: "Latency in microseconds to serve a device plugin Allocation request. Broken down by resource name.",
StabilityLevel: metrics.ALPHA, StabilityLevel: metrics.ALPHA,
DeprecatedVersion: "1.14.0",
}, },
[]string{"resource_name"}, []string{"resource_name"},
) )