From afb7bc86d5f04b67eb27a7f7572afd2ed613c107 Mon Sep 17 00:00:00 2001 From: Arve Knudsen Date: Wed, 10 Nov 2021 16:21:45 +0100 Subject: [PATCH] Parameterize Signed-off-by: Arve Knudsen --- cortex/config.libsonnet | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cortex/config.libsonnet b/cortex/config.libsonnet index 1002098..5ce9bff 100644 --- a/cortex/config.libsonnet +++ b/cortex/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,