Skip to content

Commit

Permalink
Register CLI flag for ChunkStoreConfig.MaxLookBackPeriod
Browse files Browse the repository at this point in the history
Even though the flag is already deprecated, registering the flag is necessary
for generating the config reference documentation.
  • Loading branch information
chaudum committed Aug 31, 2021
1 parent a5790f3 commit f9c98d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/storage/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ type ChunkStoreConfig struct {
// RegisterFlags adds the flags required to configure this flag set.
func (cfg *ChunkStoreConfig) RegisterFlags(f *flag.FlagSet) {
cfg.StoreConfig.RegisterFlags(f)
_ = cfg.MaxLookBackPeriod.Set("0s")
f.Var(&cfg.MaxLookBackPeriod, "store.chunks-cache.max-look-back-period", "This flag is deprecated. Use -querier.max-query-lookback instead.")
}

func (cfg *ChunkStoreConfig) Validate(logger log.Logger) error {
Expand Down

0 comments on commit f9c98d6

Please sign in to comment.