Skip to content

Commit

Permalink
Allow configuring of query.
Browse files Browse the repository at this point in the history
  • Loading branch information
onprem committed Jun 3, 2021
1 parent 5d95a53 commit 2383cb4
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 @@ -11,6 +11,7 @@ local defaults = {
replicaLabels: error 'must provide replicaLabels',
stores: ['dnssrv+_grpc._tcp.thanos-store.%s.svc.cluster.local' % defaults.namespace],
externalPrefix: '',
prefixHeader: '',
autoDownsampling: true,
resources: {},
queryTimeout: '',
Expand Down Expand Up @@ -114,6 +115,11 @@ function(params) {
'--web.external-prefix=' + tq.config.externalPrefix,
] else []
) +
(
if tq.config.prefixHeader != '' then [
'--web.prefix-header=' + tq.config.prefixHeader,
] else []
) +
(
if tq.config.queryTimeout != '' then [
'--query.timeout=' + tq.config.queryTimeout,
Expand Down

0 comments on commit 2383cb4

Please sign in to comment.