diff --git a/pkg/compact/compact.go b/pkg/compact/compact.go index 506d2dada81..7436f109613 100644 --- a/pkg/compact/compact.go +++ b/pkg/compact/compact.go @@ -76,11 +76,9 @@ func newSyncerMetrics(reg prometheus.Registerer) *syncerMetrics { Help: "Total number of failed sync meta operations.", }) m.syncMetaDuration = prometheus.NewHistogram(prometheus.HistogramOpts{ - Name: "thanos_compact_sync_meta_duration_seconds", - Help: "Time it took to sync meta files.", - Buckets: []float64{ - 0.25, 0.6, 1, 2, 3.5, 5, 7.5, 10, 15, 30, 60, 100, 200, 500, - }, + Name: "thanos_compact_sync_meta_duration_seconds", + Help: "Time it took to sync meta files.", + Buckets: prometheus.ExponentialBuckets(0.1, 2.5, 12), }) m.garbageCollectedBlocks = prometheus.NewCounter(prometheus.CounterOpts{ @@ -97,11 +95,9 @@ func newSyncerMetrics(reg prometheus.Registerer) *syncerMetrics { Help: "Total number of failed garbage collection operations.", }) m.garbageCollectionDuration = prometheus.NewHistogram(prometheus.HistogramOpts{ - Name: "thanos_compact_garbage_collection_duration_seconds", - Help: "Time it took to perform garbage collection iteration.", - Buckets: []float64{ - 0.25, 0.6, 1, 2, 3.5, 5, 7.5, 10, 15, 30, 60, 100, 200, 500, - }, + Name: "thanos_compact_garbage_collection_duration_seconds", + Help: "Time it took to perform garbage collection iteration.", + Buckets: prometheus.ExponentialBuckets(0.1, 2.5, 12), }) m.compactions = prometheus.NewCounterVec(prometheus.CounterOpts{