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

Commit e51cdcf

Browse files
authored
Merge pull request #304 from grafana/change-overrides-flag
Do not use deprecated flag -limits.per-user-override-config
2 parents 443b350 + 82ed9fe commit e51cdcf

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* [CHANGE] Replace use of removed Cortex CLI flag `-querier.compress-http-responses` for query frontend with `-api.response-compression-enabled`. #299
66
* [CHANGE] The default dashboards config now display panels for the Cortex blocks storage only. If you're running Cortex chunks storage, please change `storage_engine` config to `['chunks']` or `['chunks', 'blocks']` if running both. #302
77
* [CHANGE] Enabled index-header lazy loading in store-gateways. #303
8+
* [CHANGE] Replaced the deprecated CLI flag `-limits.per-user-override-config` (removed in Cortex 1.9) with `-runtime-config.file`. #304
89
* [FEATURE] Added "Cortex / Rollout progress" dashboard. #289 #290
910
* [FEATURE] Added support for using query-scheduler component, which moves the queue out of query-frontend, and allows scaling up of query-frontend component. #295
1011
* [ENHANCEMENT] Added `newCompactorStatefulSet()` function to create a custom statefulset for the compactor. #287

cortex/config.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198

199199
// Shared between the Ruler and Querier
200200
queryConfig: {
201-
'limits.per-user-override-config': '/etc/cortex/overrides.yaml',
201+
'runtime-config.file': '/etc/cortex/overrides.yaml',
202202

203203
// Limit the size of the rows we read from the index.
204204
'store.cardinality-limit': 1e6,

cortex/distributor.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
'validation.reject-old-samples': true,
1313
'validation.reject-old-samples.max-age': '12h',
14-
'limits.per-user-override-config': '/etc/cortex/overrides.yaml',
14+
'runtime-config.file': '/etc/cortex/overrides.yaml',
1515
'distributor.remote-timeout': '20s',
1616

1717
'distributor.ha-tracker.enable': true,

cortex/ingester.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
'ingester.max-global-series-per-metric': $._config.limits.max_global_series_per_metric,
3131
'ingester.max-series-per-query': $._config.limits.max_series_per_query,
3232
'ingester.max-samples-per-query': $._config.limits.max_samples_per_query,
33-
'limits.per-user-override-config': '/etc/cortex/overrides.yaml',
33+
'runtime-config.file': '/etc/cortex/overrides.yaml',
3434
'server.grpc-max-concurrent-streams': 100000,
3535
} + (
3636
if $._config.memcached_index_writes_enabled then

cortex/query-frontend.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
// Limit queries to 500 days, allow this to be override per-user.
3737
'store.max-query-length': '12000h', // 500 Days
38-
'limits.per-user-override-config': '/etc/cortex/overrides.yaml',
38+
'runtime-config.file': '/etc/cortex/overrides.yaml',
3939
} + (
4040
if $._config.queryFrontend.sharded_queries_enabled then
4141
{

cortex/tsdb.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
$._config.queryBlocksStorageConfig +
208208
{
209209
target: 'store-gateway',
210-
'limits.per-user-override-config': '/etc/cortex/overrides.yaml',
210+
'runtime-config.file': '/etc/cortex/overrides.yaml',
211211

212212
// Persist ring tokens so that when the store-gateway will be restarted
213213
// it will pick the same tokens

0 commit comments

Comments
 (0)