Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 4459562

Browse files
committed
Change max query length to 32 days
To allow for comparision over months of 31d Signed-off-by: Goutham Veeramachaneni <[email protected]>
1 parent b82a999 commit 4459562

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* [CHANGE] The project is now licensed with Apache-2.0 license. #169
66
* [CHANGE] Add overrides config to tsdb store-gateway. #167
77
* [CHANGE] Ingesters now default to running as `StatefulSet` with WAL enabled. It is controlled by the config `$._config.ingester_deployment_without_wal` which is `false` by default. Setting the config to `true` will yeild the old behaviour (stateless `Deployment` without WAL enabled). #72
8+
* [CHANGE] We now allow queries that are 32 days long. For example, rate(metric[32d]). Before it was 31d. #173
89

910
## 1.3.0 / 2020-08-21
1011

cortex/config.libsonnet

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,11 @@
169169
// Limit the size of the rows we read from the index.
170170
'store.cardinality-limit': 1e6,
171171

172-
// Don't allow individual queries of longer than 31days. Due to day query
173-
// splitting in the frontend, the reality is this only limits rate(foo[31d])
174-
// type queries.
175-
'store.max-query-length': '744h',
172+
// Don't allow individual queries of longer than 32days. Due to day query
173+
// splitting in the frontend, the reality is this only limits rate(foo[32d])
174+
// type queries. 32 days to allow for comparision over the last month (31d) and
175+
// then some.
176+
'store.max-query-length': '768h',
176177
} + (
177178
if $._config.storage_engine == 'chunks' then {
178179
// Don't query ingesters for older queries.

0 commit comments

Comments
 (0)