From 4c565cef081e383454a820a394bdfca8119661cd Mon Sep 17 00:00:00 2001 From: Arve Knudsen Date: Tue, 9 Nov 2021 18:09:08 +0100 Subject: [PATCH 1/2] cortex: Define Azure ruler args Signed-off-by: Arve Knudsen --- operations/mimir/config.libsonnet | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/operations/mimir/config.libsonnet b/operations/mimir/config.libsonnet index 1761bed9004..10020981ddf 100644 --- a/operations/mimir/config.libsonnet +++ b/operations/mimir/config.libsonnet @@ -258,7 +258,11 @@ 'ruler-storage.s3.region': $._config.aws_region, 'ruler-storage.s3.bucket-name': $._config.ruler_storage_bucket_name, }, - azure: {}, + azure: { + 'ruler-storage.azure.container-name': '%(cluster)s-%(namespace)s-ruler' % $._config, + 'ruler-storage.azure.account-name': '$(BLOCKS_STORAGE_AZURE_ACCOUNT_NAME)', + 'ruler-storage.azure.account-key': '$(BLOCKS_STORAGE_AZURE_ACCOUNT_KEY)', + }, 'local': { 'ruler-storage.local.directory': $._config.ruler_local_directory, }, From db807aaa94d687ee8dc95eadcbd9124992dbc773 Mon Sep 17 00:00:00 2001 From: Arve Knudsen Date: Wed, 10 Nov 2021 16:21:45 +0100 Subject: [PATCH 2/2] Parameterize Signed-off-by: Arve Knudsen --- operations/mimir/config.libsonnet | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/operations/mimir/config.libsonnet b/operations/mimir/config.libsonnet index 10020981ddf..5ce9bff7818 100644 --- a/operations/mimir/config.libsonnet +++ b/operations/mimir/config.libsonnet @@ -245,6 +245,8 @@ ruler_enabled: false, ruler_client_type: error 'you must specify a storage backend type for the ruler (azure, gcs, s3, local)', ruler_storage_bucket_name: error 'must specify the ruler storage bucket name', + ruler_storage_azure_account_name: error 'must specify the ruler storage Azure account name', + ruler_storage_azure_account_key: error 'must specify the ruler storage Azure account key', rulerClientConfig: { @@ -259,9 +261,9 @@ 'ruler-storage.s3.bucket-name': $._config.ruler_storage_bucket_name, }, azure: { - 'ruler-storage.azure.container-name': '%(cluster)s-%(namespace)s-ruler' % $._config, - 'ruler-storage.azure.account-name': '$(BLOCKS_STORAGE_AZURE_ACCOUNT_NAME)', - 'ruler-storage.azure.account-key': '$(BLOCKS_STORAGE_AZURE_ACCOUNT_KEY)', + 'ruler-storage.azure.container-name': $._config.ruler_storage_bucket_name, + 'ruler-storage.azure.account-name': $._config.ruler_storage_azure_account_name, + 'ruler-storage.azure.account-key': $._config.ruler_storage_azure_account_key, }, 'local': { 'ruler-storage.local.directory': $._config.ruler_local_directory,