From 801a52c06d5d12d3a30d06fced5b33bb2f688b0c Mon Sep 17 00:00:00 2001 From: Alvaro Aleman Date: Fri, 30 Oct 2020 11:28:08 -0400 Subject: [PATCH] Allow debugging kubelet image pull times This PR changes the buckets of the kubelet_runtime_operation_duration_seconds metric to be metrics.ExponentialBuckets(.005, 2.5, 14) in order to allow debugging image pull times. Right now the biggest bucket is 10 seconds, which is an ordinary time frame to pull an image, making the metric useless for the aforementioned usecase. --- pkg/kubelet/metrics/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubelet/metrics/metrics.go b/pkg/kubelet/metrics/metrics.go index b903f5cd2cb..d47d5ac0a6e 100644 --- a/pkg/kubelet/metrics/metrics.go +++ b/pkg/kubelet/metrics/metrics.go @@ -204,7 +204,7 @@ var ( Subsystem: KubeletSubsystem, Name: RuntimeOperationsDurationKey, Help: "Duration in seconds of runtime operations. Broken down by operation type.", - Buckets: metrics.DefBuckets, + Buckets: metrics.ExponentialBuckets(.005, 2.5, 14), StabilityLevel: metrics.ALPHA, }, []string{"operation_type"},