feat(tsdb): register st_storage in feature API

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 <gyorgy.krajcsovits@grafana.com>
Coded with Claude Sonnet 4.6.
This commit is contained in:
György Krajcsovits 2026-03-12 16:01:04 +01:00
parent 0bb6a462d0
commit 0dac72ee94
No known key found for this signature in database
GPG key ID: 47A8F9CE80FD7C7F
2 changed files with 2 additions and 0 deletions

View file

@ -251,6 +251,7 @@
"exemplar_storage": false,
"isolation": true,
"native_histograms": true,
"st_storage": false,
"use_uncached_io": false
},
"ui": {

View file

@ -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)