Skip to content

Commit f7280ea

Browse files
committed
Enable query auto downsampling
Signed-off-by: Simon Rüegg <[email protected]>
1 parent 0e6301d commit f7280ea

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ We use *breaking* word for marking changes that are not backward compatible (rel
3030
- [#194](https://github.com/thanos-io/kube-thanos/pull/194) Allow configuring --label and --receive.tenant-label-name flags.
3131
- [#209](https://github.com/thanos-io/kube-thanos/pull/209) Allow configuring --label and --refresh flags of bucket web.
3232
- [#213](https://github.com/thanos-io/kube-thanos/pull/213) Allow configuring `--min-time` and `--max-time` of store.
33+
- [#218](https://github.com/thanos-io/kube-thanos/pull/218) Enable `--query.auto-downsampling` for query by default.
3334

3435
### Fixed
3536

all.jsonnet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ local q = t.query(commonConfig {
111111
externalPrefix: '',
112112
resources: {},
113113
queryTimeout: '5m',
114+
autoDownsampling: true,
114115
lookbackDelta: '15m',
115116
ports: {
116117
grpc: 10901,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ spec:
6363
"sampler_type": "ratelimiting"
6464
"service_name": "thanos-query"
6565
"type": "JAEGER"
66+
- --query.auto-downsampling
6667
image: quay.io/thanos/thanos:v0.17.2
6768
livenessProbe:
6869
failureThreshold: 4

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+
autoDownsampling: true,
1415
resources: {},
1516
queryTimeout: '',
1617
lookbackDelta: '',
@@ -54,6 +55,7 @@ function(params) {
5455
assert std.isString(tq.config.externalPrefix),
5556
assert std.isString(tq.config.queryTimeout),
5657
assert std.isBoolean(tq.config.serviceMonitor),
58+
assert std.isBoolean(tq.config.autoDownsampling),
5759

5860
service: {
5961
apiVersion: 'v1',
@@ -127,6 +129,10 @@ function(params) {
127129
{ config+: { service_name: defaults.name } } + tq.config.tracing
128130
),
129131
] else []
132+
) + (
133+
if tq.config.autoDownsampling then [
134+
'--query.auto-downsampling',
135+
] else []
130136
),
131137
ports: [
132138
{ name: port.name, containerPort: port.port }

manifests/thanos-query-deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ spec:
4747
- --query.replica-label=prometheus_replica
4848
- --query.replica-label=rule_replica
4949
- --store=dnssrv+_grpc._tcp.thanos-store.thanos.svc.cluster.local
50+
- --query.auto-downsampling
5051
image: quay.io/thanos/thanos:v0.17.2
5152
livenessProbe:
5253
failureThreshold: 4

0 commit comments

Comments
 (0)