From 3cdfa9d7f00709bfa40e45b3eee29e00325ff003 Mon Sep 17 00:00:00 2001 From: Jakub Rusz Date: Tue, 7 Feb 2023 16:39:43 +0100 Subject: [PATCH] internal/prometheus: add more buckets for job durations We were hitting the limit on stage, let's increase it. --- internal/prometheus/job_metrics.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/prometheus/job_metrics.go b/internal/prometheus/job_metrics.go index 32f5fddfa..d233983ec 100644 --- a/internal/prometheus/job_metrics.go +++ b/internal/prometheus/job_metrics.go @@ -41,7 +41,7 @@ var ( Namespace: Namespace, Subsystem: WorkerSubsystem, Help: "Duration spent by workers on a job.", - Buckets: []float64{.1, .2, .5, 1, 2, 4, 8, 16, 32, 40, 48, 64, 96, 128, 160, 192, 224, 256, 320, 382, 448, 512, 640, 768, 896, 1024, 1280, 1536, 1792, 2049}, + Buckets: []float64{.1, .2, .5, 1, 2, 4, 8, 16, 32, 40, 48, 64, 96, 128, 160, 192, 224, 256, 320, 382, 448, 512, 640, 768, 896, 1024, 1280, 1536, 1792, 2048, 2304, 2560, 2816, 3072, 3328, 3584, 3840, 4096, 4608, 5120, 5632, 6144, 6656, 7168, 7680, 8192, 8704, 9216, 9728, 10240, 10752}, }, []string{"type", "status", "tenant", "arch"}) ) @@ -51,7 +51,7 @@ var ( Namespace: Namespace, Subsystem: WorkerSubsystem, Help: "Duration a job spends on the queue.", - Buckets: []float64{.1, .2, .5, 1, 2, 4, 8, 16, 32, 40, 48, 64, 96, 128, 160, 192, 224, 256, 320, 382, 448, 512, 640, 768, 896, 1024, 1280, 1536, 1792, 2049}, + Buckets: []float64{.1, .2, .5, 1, 2, 4, 8, 16, 32, 40, 48, 64, 96, 128, 160, 192, 224, 256, 320, 382, 448, 512, 640, 768, 896, 1024, 1280, 1536, 1792, 2048, 2304, 2560, 2816, 3072, 3328, 3584, 3840, 4096, 4608, 5120, 5632, 6144, 6656, 7168, 7680, 8192, 8704, 9216, 9728, 10240, 10752}, }, []string{"type", "tenant"}) )