Skip to content

Commit e572e77

Browse files
authored
Increase the buckets for compaction duration (prometheus#8342)
We're seeing compactions that are taking hours in Cortex which this is missing. I know while it is not common in Prometheus, I am pretty sure there are setups where compaction takes longer than 512s. On our own Prometheus the average compaction duration is 566s. Signed-off-by: Goutham Veeramachaneni <[email protected]>
1 parent b5dfa24 commit e572e77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tsdb/compact.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func newCompactorMetrics(r prometheus.Registerer) *compactorMetrics {
111111
m.duration = prometheus.NewHistogram(prometheus.HistogramOpts{
112112
Name: "prometheus_tsdb_compaction_duration_seconds",
113113
Help: "Duration of compaction runs",
114-
Buckets: prometheus.ExponentialBuckets(1, 2, 10),
114+
Buckets: prometheus.ExponentialBuckets(1, 2, 14),
115115
})
116116
m.chunkSize = prometheus.NewHistogram(prometheus.HistogramOpts{
117117
Name: "prometheus_tsdb_compaction_chunk_size_bytes",

0 commit comments

Comments
 (0)