Add test case for loading stale_series_compaction_threshold config

Signed-off-by: Ganesh Vernekar <ganesh.vernekar@reddit.com>
This commit is contained in:
Ganesh Vernekar 2026-01-24 16:32:44 -08:00
parent 9eb78735cf
commit 68b7aaaf15
2 changed files with 4 additions and 2 deletions

View file

@ -1733,8 +1733,9 @@ var expectedConf = &Config{
}, },
StorageConfig: StorageConfig{ StorageConfig: StorageConfig{
TSDBConfig: &TSDBConfig{ TSDBConfig: &TSDBConfig{
OutOfOrderTimeWindow: 30 * time.Minute.Milliseconds(), OutOfOrderTimeWindow: 30 * time.Minute.Milliseconds(),
OutOfOrderTimeWindowFlag: model.Duration(30 * time.Minute), OutOfOrderTimeWindowFlag: model.Duration(30 * time.Minute),
StaleSeriesCompactionThreshold: 0.5,
Retention: &TSDBRetentionConfig{ Retention: &TSDBRetentionConfig{
Time: model.Duration(24 * time.Hour), Time: model.Duration(24 * time.Hour),
Size: 1 * units.GiB, Size: 1 * units.GiB,

View file

@ -453,6 +453,7 @@ alerting:
storage: storage:
tsdb: tsdb:
out_of_order_time_window: 30m out_of_order_time_window: 30m
stale_series_compaction_threshold: 0.5
retention: retention:
time: 1d time: 1d
size: 1GB size: 1GB