Skip to content

Commit 3d63772

Browse files
committed
Allow configuring of query.
Signed-off-by: Prem Saraswat <[email protected]>
1 parent 5d95a53 commit 3d63772

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

jsonnet/kube-thanos/kube-thanos-query.libsonnet

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ local defaults = {
1111
replicaLabels: error 'must provide replicaLabels',
1212
stores: ['dnssrv+_grpc._tcp.thanos-store.%s.svc.cluster.local' % defaults.namespace],
1313
externalPrefix: '',
14+
prefixHeader: '',
1415
autoDownsampling: true,
1516
resources: {},
1617
queryTimeout: '',
@@ -114,6 +115,11 @@ function(params) {
114115
'--web.external-prefix=' + tq.config.externalPrefix,
115116
] else []
116117
) +
118+
(
119+
if tq.config.prefixHeader != '' then [
120+
'--web.prefix-header=' + tq.config.prefixHeader,
121+
] else []
122+
) +
117123
(
118124
if tq.config.queryTimeout != '' then [
119125
'--query.timeout=' + tq.config.queryTimeout,

0 commit comments

Comments
 (0)