Add a chunk filterer field to the config (#3979)

Signed-off-by: Michel Hollands <michel.hollands@grafana.com>
pull/3984/head
Michel Hollands 4 years ago committed by GitHub
parent af452047d3
commit 78b073e022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      pkg/ingester/ingester.go

@ -77,6 +77,8 @@ type Config struct {
QueryStoreMaxLookBackPeriod time.Duration `yaml:"query_store_max_look_back_period"`
WAL WALConfig `yaml:"wal,omitempty"`
ChunkFilterer storage.RequestChunkFilterer `yaml:"-"`
}
// RegisterFlags registers the flags.
@ -218,6 +220,10 @@ func New(cfg Config, clientConfig client.Config, store ChunkStore, limits *valid
i.limiter = NewLimiter(limits, i.lifecycler, cfg.LifecyclerConfig.RingConfig.ReplicationFactor)
i.Service = services.NewBasicService(i.starting, i.running, i.stopping)
if i.cfg.ChunkFilterer != nil {
i.SetChunkFilterer(i.cfg.ChunkFilterer)
}
return i, nil
}

Loading…
Cancel
Save