diff --git a/cmd/prometheus/main.go b/cmd/prometheus/main.go
index 7aab8a93ef..65fcf15238 100644
--- a/cmd/prometheus/main.go
+++ b/cmd/prometheus/main.go
@@ -312,8 +312,10 @@ func main() {
serverOnlyFlag(a, "storage.tsdb.no-lockfile", "Do not create lockfile in data directory.").
Default("false").BoolVar(&cfg.tsdb.NoLockfile)
- serverOnlyFlag(a, "storage.tsdb.allow-overlapping-blocks", "Allow overlapping blocks, which in turn enables vertical compaction and vertical query merge.").
- Default("false").BoolVar(&cfg.tsdb.AllowOverlappingBlocks)
+ // TODO: Remove in Prometheus 3.0.
+ var b bool
+ serverOnlyFlag(a, "storage.tsdb.allow-overlapping-blocks", "[DEPRECATED] This flag has no effect. Overlapping blocks are enabled by default now.").
+ Default("true").Hidden().BoolVar(&b)
serverOnlyFlag(a, "storage.tsdb.wal-compression", "Compress the tsdb WAL.").
Hidden().Default("true").BoolVar(&cfg.tsdb.WALCompression)
@@ -1008,7 +1010,6 @@ func main() {
"NoLockfile", cfg.tsdb.NoLockfile,
"RetentionDuration", cfg.tsdb.RetentionDuration,
"WALSegmentSize", cfg.tsdb.WALSegmentSize,
- "AllowOverlappingBlocks", cfg.tsdb.AllowOverlappingBlocks,
"WALCompression", cfg.tsdb.WALCompression,
)
@@ -1531,7 +1532,6 @@ type tsdbOptions struct {
RetentionDuration model.Duration
MaxBytes units.Base2Bytes
NoLockfile bool
- AllowOverlappingBlocks bool
WALCompression bool
HeadChunksWriteQueueSize int
StripeSize int
@@ -1550,8 +1550,7 @@ func (opts tsdbOptions) ToTSDBOptions() tsdb.Options {
RetentionDuration: int64(time.Duration(opts.RetentionDuration) / time.Millisecond),
MaxBytes: int64(opts.MaxBytes),
NoLockfile: opts.NoLockfile,
- AllowOverlappingCompaction: opts.AllowOverlappingBlocks,
- AllowOverlappingQueries: opts.AllowOverlappingBlocks,
+ AllowOverlappingCompaction: true,
WALCompression: opts.WALCompression,
HeadChunksWriteQueueSize: opts.HeadChunksWriteQueueSize,
StripeSize: opts.StripeSize,
diff --git a/cmd/promtool/rules_test.go b/cmd/promtool/rules_test.go
index a184311e5a..c7e9933fb4 100644
--- a/cmd/promtool/rules_test.go
+++ b/cmd/promtool/rules_test.go
@@ -117,8 +117,6 @@ func TestBackfillRuleIntegration(t *testing.T) {
}
opts := tsdb.DefaultOptions()
- opts.AllowOverlappingQueries = true
- opts.AllowOverlappingCompaction = true
db, err := tsdb.Open(tmpDir, nil, nil, opts, nil)
require.NoError(t, err)
@@ -246,8 +244,6 @@ func TestBackfillLabels(t *testing.T) {
}
opts := tsdb.DefaultOptions()
- opts.AllowOverlappingQueries = true
- opts.AllowOverlappingCompaction = true
db, err := tsdb.Open(tmpDir, nil, nil, opts, nil)
require.NoError(t, err)
diff --git a/docs/storage.md b/docs/storage.md
index b2abe4acae..bcb8f7853e 100644
--- a/docs/storage.md
+++ b/docs/storage.md
@@ -155,7 +155,7 @@ Backfilling can be used via the Promtool command line. Promtool will write the b
promtool tsdb create-blocks-from openmetrics [