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

Commit be7b4d1

Browse files
authored
Merge pull request #306 from grafana/migrate-ruler-to-bucket-client
Use new ruler storage config and enable API compression
2 parents e51cdcf + c86c0c7 commit be7b4d1

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
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
88
* [CHANGE] Replaced the deprecated CLI flag `-limits.per-user-override-config` (removed in Cortex 1.9) with `-runtime-config.file`. #304
9+
* [CHANGE] Ruler: changed ruler config to use the new storage config. #306
10+
* [CHANGE] Ruler: enabled API response compression. #306
911
* [FEATURE] Added "Cortex / Rollout progress" dashboard. #289 #290
1012
* [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
1113
* [ENHANCEMENT] Added `newCompactorStatefulSet()` function to create a custom statefulset for the compactor. #287

cortex/config.libsonnet

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,20 +260,21 @@
260260

261261
rulerClientConfig:
262262
{
263-
'ruler.storage.type': $._config.ruler_client_type,
263+
'ruler-storage.backend': $._config.ruler_client_type,
264264
} +
265265
{
266266
configdb: {
267267
configs_api_url: 'config.%s.svc.cluster.local' % $._config.namespace,
268268
},
269269
gcs: {
270-
'ruler.storage.gcs.bucketname': $._config.ruler_gcs_bucket_name,
270+
'ruler-storage.gcs.bucket-name': $._config.ruler_gcs_bucket_name,
271271
},
272272
s3: {
273-
'ruler.storage.s3.url': 'https://%s/%s' % [$._config.aws_region, $._config.ruler_s3_bucket_name],
273+
'ruler-storage.s3.region': $._config.aws_region,
274+
'ruler-storage.s3.bucket-name': $._config.ruler_s3_bucket_name,
274275
},
275276
'local': {
276-
'ruler.storage.local.directory': $._config.ruler_local_directory,
277+
'ruler-storage.local.directory': $._config.ruler_local_directory,
277278
},
278279
}[$._config.ruler_client_type],
279280

cortex/ruler.libsonnet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
// Alertmanager configs
1616
'ruler.alertmanager-url': 'http://alertmanager.%s.svc.cluster.local/alertmanager' % $._config.namespace,
1717
'experimental.ruler.enable-api': true,
18+
'api.response-compression-enabled': true,
1819

1920
// Ring Configs
2021
'ruler.enable-sharding': true,

0 commit comments

Comments
 (0)