From 0dac72ee94f5bd35c84ba204009d36b06cc8b2e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gy=C3=B6rgy=20Krajcsovits?= Date: Thu, 12 Mar 2026 16:01:04 +0100 Subject: [PATCH] feat(tsdb): register st_storage in feature API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Register the st-storage feature flag in the feature registry via the TSDB options, consistent with how other TSDB features like exemplar_storage and delayed_compaction are registered. Signed-off-by: György Krajcsovits Coded with Claude Sonnet 4.6. --- cmd/prometheus/testdata/features.json | 1 + tsdb/db.go | 1 + 2 files changed, 2 insertions(+) diff --git a/cmd/prometheus/testdata/features.json b/cmd/prometheus/testdata/features.json index 60e6b65b40..e68b7def1e 100644 --- a/cmd/prometheus/testdata/features.json +++ b/cmd/prometheus/testdata/features.json @@ -251,6 +251,7 @@ "exemplar_storage": false, "isolation": true, "native_histograms": true, + "st_storage": false, "use_uncached_io": false }, "ui": { diff --git a/tsdb/db.go b/tsdb/db.go index c793ace522..8c1fffbed4 100644 --- a/tsdb/db.go +++ b/tsdb/db.go @@ -868,6 +868,7 @@ func Open(dir string, l *slog.Logger, r prometheus.Registerer, opts *Options, st opts.FeatureRegistry.Set(features.TSDB, "isolation", !opts.IsolationDisabled) opts.FeatureRegistry.Set(features.TSDB, "use_uncached_io", opts.UseUncachedIO) opts.FeatureRegistry.Enable(features.TSDB, "native_histograms") + opts.FeatureRegistry.Set(features.TSDB, "st_storage", opts.EnableSTStorage) } return open(dir, l, r, opts, rngs, stats)