From 6c3d11629b3c46e17267e3da652bd51e6090d316 Mon Sep 17 00:00:00 2001 From: Ben Ye Date: Sat, 5 Oct 2024 17:05:42 -0700 Subject: [PATCH] add missing flag storage.tsdb.allow-overlapping-compaction Signed-off-by: Ben Ye --- cmd/prometheus/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/prometheus/main.go b/cmd/prometheus/main.go index 11d8caae6f..f670bc8b8c 100644 --- a/cmd/prometheus/main.go +++ b/cmd/prometheus/main.go @@ -384,6 +384,9 @@ 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-compaction", "Allow compaction of overlapping blocks. If set to false, TSDB stops vertical compaction and leaves overlapping blocks there. The use case is to let another component handle the compaction of overlapping blocks."). + Default("true").Hidden().BoolVar(&cfg.tsdb.EnableOverlappingCompaction) + serverOnlyFlag(a, "storage.tsdb.wal-compression", "Compress the tsdb WAL."). Hidden().Default("true").BoolVar(&cfg.tsdb.WALCompression)