Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ We use *breaking* word for marking changes that are not backward compatible (rel
- [#194](https://github.com/thanos-io/kube-thanos/pull/194) Allow configuring --label and --receive.tenant-label-name flags.
- [#209](https://github.com/thanos-io/kube-thanos/pull/209) Allow configuring --label and --refresh flags of bucket web.
- [#213](https://github.com/thanos-io/kube-thanos/pull/213) Allow configuring `--min-time` and `--max-time` of store.
- [#218](https://github.com/thanos-io/kube-thanos/pull/218) Enable `--query.auto-downsampling` for query by default.

### Fixed

Expand Down
1 change: 1 addition & 0 deletions all.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ local q = t.query(commonConfig {
externalPrefix: '',
resources: {},
queryTimeout: '5m',
autoDownsampling: true,
lookbackDelta: '15m',
ports: {
grpc: 10901,
Expand Down
1 change: 1 addition & 0 deletions examples/all/manifests/thanos-query-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ spec:
"sampler_type": "ratelimiting"
"service_name": "thanos-query"
"type": "JAEGER"
- --query.auto-downsampling
image: quay.io/thanos/thanos:v0.17.2
livenessProbe:
failureThreshold: 4
Expand Down
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: '',
autoDownsampling: true,
resources: {},
queryTimeout: '',
lookbackDelta: '',
Expand Down Expand Up @@ -54,6 +55,7 @@ function(params) {
assert std.isString(tq.config.externalPrefix),
assert std.isString(tq.config.queryTimeout),
assert std.isBoolean(tq.config.serviceMonitor),
assert std.isBoolean(tq.config.autoDownsampling),

service: {
apiVersion: 'v1',
Expand Down Expand Up @@ -127,6 +129,10 @@ function(params) {
{ config+: { service_name: defaults.name } } + tq.config.tracing
),
] else []
) + (
if tq.config.autoDownsampling then [
'--query.auto-downsampling',
] else []
),
ports: [
{ name: port.name, containerPort: port.port }
Expand Down
1 change: 1 addition & 0 deletions manifests/thanos-query-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ spec:
- --query.replica-label=prometheus_replica
- --query.replica-label=rule_replica
- --store=dnssrv+_grpc._tcp.thanos-store.thanos.svc.cluster.local
- --query.auto-downsampling
image: quay.io/thanos/thanos:v0.17.2
livenessProbe:
failureThreshold: 4
Expand Down