mirror of
https://github.com/prometheus/prometheus.git
synced 2026-02-03 20:39:32 -05:00
Add test case for loading stale_series_compaction_threshold config
Signed-off-by: Ganesh Vernekar <ganesh.vernekar@reddit.com>
This commit is contained in:
parent
9eb78735cf
commit
68b7aaaf15
2 changed files with 4 additions and 2 deletions
|
|
@ -1733,8 +1733,9 @@ var expectedConf = &Config{
|
|||
},
|
||||
StorageConfig: StorageConfig{
|
||||
TSDBConfig: &TSDBConfig{
|
||||
OutOfOrderTimeWindow: 30 * time.Minute.Milliseconds(),
|
||||
OutOfOrderTimeWindowFlag: model.Duration(30 * time.Minute),
|
||||
OutOfOrderTimeWindow: 30 * time.Minute.Milliseconds(),
|
||||
OutOfOrderTimeWindowFlag: model.Duration(30 * time.Minute),
|
||||
StaleSeriesCompactionThreshold: 0.5,
|
||||
Retention: &TSDBRetentionConfig{
|
||||
Time: model.Duration(24 * time.Hour),
|
||||
Size: 1 * units.GiB,
|
||||
|
|
|
|||
1
config/testdata/conf.good.yml
vendored
1
config/testdata/conf.good.yml
vendored
|
|
@ -453,6 +453,7 @@ alerting:
|
|||
storage:
|
||||
tsdb:
|
||||
out_of_order_time_window: 30m
|
||||
stale_series_compaction_threshold: 0.5
|
||||
retention:
|
||||
time: 1d
|
||||
size: 1GB
|
||||
|
|
|
|||
Loading…
Reference in a new issue