Skip to content

Commit afb7bc8

Browse files
committed
Parameterize
Signed-off-by: Arve Knudsen <[email protected]>
1 parent 64fa11d commit afb7bc8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cortex/config.libsonnet

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@
245245
ruler_enabled: false,
246246
ruler_client_type: error 'you must specify a storage backend type for the ruler (azure, gcs, s3, local)',
247247
ruler_storage_bucket_name: error 'must specify the ruler storage bucket name',
248+
ruler_storage_azure_account_name: error 'must specify the ruler storage Azure account name',
249+
ruler_storage_azure_account_key: error 'must specify the ruler storage Azure account key',
248250

249251
rulerClientConfig:
250252
{
@@ -259,9 +261,9 @@
259261
'ruler-storage.s3.bucket-name': $._config.ruler_storage_bucket_name,
260262
},
261263
azure: {
262-
'ruler-storage.azure.container-name': '%(cluster)s-%(namespace)s-ruler' % $._config,
263-
'ruler-storage.azure.account-name': '$(BLOCKS_STORAGE_AZURE_ACCOUNT_NAME)',
264-
'ruler-storage.azure.account-key': '$(BLOCKS_STORAGE_AZURE_ACCOUNT_KEY)',
264+
'ruler-storage.azure.container-name': $._config.ruler_storage_bucket_name,
265+
'ruler-storage.azure.account-name': $._config.ruler_storage_azure_account_name,
266+
'ruler-storage.azure.account-key': $._config.ruler_storage_azure_account_key,
265267
},
266268
'local': {
267269
'ruler-storage.local.directory': $._config.ruler_local_directory,

0 commit comments

Comments
 (0)