Skip to content

Commit

Permalink
Merge pull request #285 from saswatamcode/new-engine
Browse files Browse the repository at this point in the history
Add option for enabling new PromQL engine in querier
  • Loading branch information
yeya24 authored Oct 10, 2022
2 parents 826595f + 3f2c658 commit e57d153
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jsonnet/kube-thanos/kube-thanos-query.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ local defaults = {
externalPrefix: '',
prefixHeader: '',
autoDownsampling: true,
useThanosEngine: false,
resources: {},
queryTimeout: '',
lookbackDelta: '',
Expand Down Expand Up @@ -61,6 +62,7 @@ function(params) {
assert std.isString(tq.config.queryTimeout),
assert std.isBoolean(tq.config.serviceMonitor),
assert std.isBoolean(tq.config.autoDownsampling),
assert std.isBoolean(tq.config.useThanosEngine),

service: {
apiVersion: 'v1',
Expand Down Expand Up @@ -148,6 +150,10 @@ function(params) {
if tq.config.autoDownsampling then [
'--query.auto-downsampling',
] else []
) + (
if tq.config.useThanosEngine then [
'--query.promql-engine=thanos',
] else []
),
env: [
{
Expand Down

0 comments on commit e57d153

Please sign in to comment.