Skip to content

Commit

Permalink
Enable analysis on Thanos PromQL engine (#6472)
Browse files Browse the repository at this point in the history
Signed-off-by: 🌲 Harry 🌊 John 🏔 <[email protected]>
  • Loading branch information
harry671003 authored Jan 2, 2025
1 parent eee5b9f commit b7c08b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cortex/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,7 @@ func (t *Cortex) initRuler() (serv services.Service, err error) {
queryEngine = engine.New(engine.Opts{
EngineOpts: opts,
LogicalOptimizers: logicalplan.AllOptimizers,
EnableAnalysis: true,
})
} else {
queryEngine = promql.NewEngine(opts)
Expand Down
1 change: 1 addition & 0 deletions pkg/querier/querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ func New(cfg Config, limits *validation.Overrides, distributor Distributor, stor
queryEngine = engine.New(engine.Opts{
EngineOpts: opts,
LogicalOptimizers: logicalplan.AllOptimizers,
EnableAnalysis: true,
})
} else {
queryEngine = promql.NewEngine(opts)
Expand Down

0 comments on commit b7c08b9

Please sign in to comment.