Skip to content

Commit 4eb672b

Browse files
authored
update query frontend flag name (#150)
Signed-off-by: Ben Ye <[email protected]>
1 parent 66b017f commit 4eb672b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

examples/all/manifests/thanos-query-frontend-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ spec:
4545
- --query-frontend.downstream-url=http://thanos-query.thanos.svc.cluster.local.:9090
4646
- --query-range.split-interval=24h
4747
- --query-range.max-retries-per-request=5
48-
- --query-frontend.log_queries_longer_than=5s
48+
- --query-frontend.log-queries-longer-than=5s
4949
- |-
5050
--query-range.response-cache-config="config":
5151
"max_size": "0"

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
151151
containers: [
152152
if c.name == 'thanos-query-frontend' then c {
153153
args+: [
154-
'--query-frontend.log_queries_longer_than=' + tqf.config.logQueriesLongerThan,
154+
'--query-frontend.log-queries-longer-than=' + tqf.config.logQueriesLongerThan,
155155
],
156156
} else c
157157
for c in super.containers
@@ -184,7 +184,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
184184
},
185185
},
186186
},
187-
},
187+
},
188188

189189
withSplitInterval:: {
190190
local tqf = self,
@@ -208,7 +208,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
208208
},
209209
},
210210
},
211-
},
211+
},
212212

213213
local fifoCacheDefaults = {
214214
// Don't limit maximum item size.

jsonnet/kube-thanos/kube-thanos-rule.libsonnet

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
197197
containers: [
198198
if c.name == 'thanos-rule' then c {
199199
args+: [
200-
'--alertmanagers.url=' + alertmanagerURL,
200+
'--alertmanagers.url=' + alertmanagerURL
201201
for alertmanagerURL in tr.config.alertmanagersURL
202202
],
203203
} else c
@@ -222,11 +222,11 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
222222
containers: [
223223
if c.name == 'thanos-rule' then c {
224224
args+: [
225-
'--rule-file=/etc/thanos/rules/' + ruleConfig.name + '/' + ruleConfig.key,
225+
'--rule-file=/etc/thanos/rules/' + ruleConfig.name + '/' + ruleConfig.key
226226
for ruleConfig in tr.config.rulesConfig
227227
],
228228
volumeMounts+: [
229-
{ name: ruleConfig.name, mountPath: '/etc/thanos/rules/' + ruleConfig.name },
229+
{ name: ruleConfig.name, mountPath: '/etc/thanos/rules/' + ruleConfig.name }
230230
for ruleConfig in tr.config.rulesConfig
231231
],
232232
} else c
@@ -236,7 +236,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
236236
local volume = k.apps.v1.statefulSet.mixin.spec.template.spec.volumesType,
237237
volumes+: [
238238
volume.withName(ruleConfig.name) +
239-
volume.mixin.configMap.withName(ruleConfig.name),
239+
volume.mixin.configMap.withName(ruleConfig.name)
240240
for ruleConfig in tr.config.rulesConfig
241241
],
242242
},

0 commit comments

Comments
 (0)