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{
|
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,
|
||||||
|
|
|
||||||
1
config/testdata/conf.good.yml
vendored
1
config/testdata/conf.good.yml
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue