File tree Expand file tree Collapse file tree 5 files changed +10
-0
lines changed Expand file tree Collapse file tree 5 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ We use *breaking* word for marking changes that are not backward compatible (rel
30
30
- [ #194 ] ( https://github.com/thanos-io/kube-thanos/pull/194 ) Allow configuring --label and --receive.tenant-label-name flags.
31
31
- [ #209 ] ( https://github.com/thanos-io/kube-thanos/pull/209 ) Allow configuring --label and --refresh flags of bucket web.
32
32
- [ #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.
33
34
34
35
### Fixed
35
36
Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ local q = t.query(commonConfig {
111
111
externalPrefix: '' ,
112
112
resources: {},
113
113
queryTimeout: '5m' ,
114
+ autoDownsampling: true ,
114
115
lookbackDelta: '15m' ,
115
116
ports: {
116
117
grpc: 10901 ,
Original file line number Diff line number Diff line change 63
63
"sampler_type": "ratelimiting"
64
64
"service_name": "thanos-query"
65
65
"type": "JAEGER"
66
+ - --query.auto-downsampling
66
67
image : quay.io/thanos/thanos:v0.17.2
67
68
livenessProbe :
68
69
failureThreshold : 4
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ local defaults = {
11
11
replicaLabels: error 'must provide replicaLabels' ,
12
12
stores: ['dnssrv+_grpc._tcp.thanos-store.%s.svc.cluster.local' % defaults.namespace],
13
13
externalPrefix: '' ,
14
+ autoDownsampling: true ,
14
15
resources: {},
15
16
queryTimeout: '' ,
16
17
lookbackDelta: '' ,
@@ -54,6 +55,7 @@ function(params) {
54
55
assert std.isString (tq.config.externalPrefix),
55
56
assert std.isString (tq.config.queryTimeout),
56
57
assert std.isBoolean (tq.config.serviceMonitor),
58
+ assert std.isBoolean (tq.config.autoDownsampling),
57
59
58
60
service: {
59
61
apiVersion: 'v1' ,
@@ -127,6 +129,10 @@ function(params) {
127
129
{ config+: { service_name: defaults.name } } + tq.config.tracing
128
130
),
129
131
] else []
132
+ ) + (
133
+ if tq.config.autoDownsampling then [
134
+ '--query.auto-downsampling' ,
135
+ ] else []
130
136
),
131
137
ports: [
132
138
{ name: port.name, containerPort: port.port }
Original file line number Diff line number Diff line change 47
47
- --query.replica-label=prometheus_replica
48
48
- --query.replica-label=rule_replica
49
49
- --store=dnssrv+_grpc._tcp.thanos-store.thanos.svc.cluster.local
50
+ - --query.auto-downsampling
50
51
image : quay.io/thanos/thanos:v0.17.2
51
52
livenessProbe :
52
53
failureThreshold : 4
You can’t perform that action at this time.
0 commit comments