From 84cc1193b69f47d0c6675521973b99e97e531df1 Mon Sep 17 00:00:00 2001 From: Edward Welch Date: Thu, 12 Dec 2019 16:18:38 -0500 Subject: [PATCH 1/2] change the chunk size histogram to allow for bigger buckets Signed-off-by: Edward Welch --- pkg/ingester/flush.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ingester/flush.go b/pkg/ingester/flush.go index 59d73da8c74d..28ba4747b332 100644 --- a/pkg/ingester/flush.go +++ b/pkg/ingester/flush.go @@ -42,7 +42,7 @@ var ( Namespace: "loki", Name: "ingester_chunk_size_bytes", Help: "Distribution of stored chunk sizes (when stored).", - Buckets: prometheus.ExponentialBuckets(10000, 2, 7), // biggest bucket is 10000*2^(7-1) = 640000 (~640KB) + Buckets: prometheus.ExponentialBuckets(50000, 2, 10), // biggest bucket is 50000*2^(10-1) = 25,600,000 (~25.6MB) }) chunkCompressionRatio = promauto.NewHistogram(prometheus.HistogramOpts{ Namespace: "loki", From c6b76b496a908942660d875618a69d6ece02bcc7 Mon Sep 17 00:00:00 2001 From: Edward Welch Date: Thu, 12 Dec 2019 16:40:36 -0500 Subject: [PATCH 2/2] changing buckets again Signed-off-by: Edward Welch --- pkg/ingester/flush.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ingester/flush.go b/pkg/ingester/flush.go index 28ba4747b332..7ab60d410a2e 100644 --- a/pkg/ingester/flush.go +++ b/pkg/ingester/flush.go @@ -42,7 +42,7 @@ var ( Namespace: "loki", Name: "ingester_chunk_size_bytes", Help: "Distribution of stored chunk sizes (when stored).", - Buckets: prometheus.ExponentialBuckets(50000, 2, 10), // biggest bucket is 50000*2^(10-1) = 25,600,000 (~25.6MB) + Buckets: prometheus.ExponentialBuckets(20000, 2, 10), // biggest bucket is 20000*2^(10-1) = 10,240,000 (~10.2MB) }) chunkCompressionRatio = promauto.NewHistogram(prometheus.HistogramOpts{ Namespace: "loki",