Skip to content

Commit

Permalink
Add support for query pushdown in Thanos Query
Browse files Browse the repository at this point in the history
Adds support for the Thanos Query `--enable-feature=query-pushdown` flag via a boolean `useQueryPushdown` config flag.
  • Loading branch information
swgillespie committed May 9, 2023
1 parent 4ab42ad commit 3555c45
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 @@ -16,6 +16,7 @@ local defaults = {
prefixHeader: '',
autoDownsampling: true,
useThanosEngine: false,
useQueryPushdown: false,
resources: {},
queryTimeout: '',
lookbackDelta: '',
Expand Down Expand Up @@ -66,6 +67,7 @@ function(params) {
assert std.isBoolean(tq.config.serviceMonitor),
assert std.isBoolean(tq.config.autoDownsampling),
assert std.isBoolean(tq.config.useThanosEngine),
assert std.isBoolean(tq.config.useQueryPushdown),

service: {
apiVersion: 'v1',
Expand Down Expand Up @@ -172,6 +174,10 @@ function(params) {
'--query.telemetry.request-series-seconds-quantiles=' + std.stripChars(quantile, ' ')
for quantile in std.split(tq.config.telemetrySeriesQuantiles, ',')
] else []
) + (
if tq.config.useQueryPushdown then [
'--enable-feature=query-pushdown',
] else []
),
env: [
{
Expand Down

0 comments on commit 3555c45

Please sign in to comment.