From 82c7cd320a8a2933c353d661a26a5ab61b9e84c1 Mon Sep 17 00:00:00 2001 From: Bert Hartmann Date: Thu, 4 Jun 2020 15:54:47 -0400 Subject: [PATCH] increase the remote write bucket range (#7323) * increase the remote write bucket range Increase the range of remote write buckets to capture times above 10s for laggy scenarios Buckets had been: {.005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10} Buckets are now: {0.03125, 0.0625, 0.125, 0.25, 0.5, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512} Signed-off-by: Bert Hartmann * revert back to DefBuckets with addons to be backwards compatible Signed-off-by: Bert Hartmann * shuffle the buckets to maintain 2-2.5x increases Signed-off-by: Bert Hartmann --- storage/remote/queue_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/remote/queue_manager.go b/storage/remote/queue_manager.go index 6a8b4c432..befa9a7b7 100644 --- a/storage/remote/queue_manager.go +++ b/storage/remote/queue_manager.go @@ -115,7 +115,7 @@ func newQueueManagerMetrics(r prometheus.Registerer, rn, e string) *queueManager Subsystem: subsystem, Name: "sent_batch_duration_seconds", Help: "Duration of sample batch send calls to the remote storage.", - Buckets: prometheus.DefBuckets, + Buckets: append(prometheus.DefBuckets, 25, 60, 120, 300), ConstLabels: constLabels, }) m.highestSentTimestamp = &maxGauge{