mirror of
https://github.com/prometheus/prometheus.git
synced 2026-06-08 16:12:16 -04:00
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:
parent
0bb6a462d0
commit
0dac72ee94
2 changed files with 2 additions and 0 deletions
1
cmd/prometheus/testdata/features.json
vendored
1
cmd/prometheus/testdata/features.json
vendored
|
|
@ -251,6 +251,7 @@
|
|||
"exemplar_storage": false,
|
||||
"isolation": true,
|
||||
"native_histograms": true,
|
||||
"st_storage": false,
|
||||
"use_uncached_io": false
|
||||
},
|
||||
"ui": {
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue