Skip to content

Commit

Permalink
Parameterize
Browse files Browse the repository at this point in the history
Signed-off-by: Arve Knudsen <[email protected]>
  • Loading branch information
aknuds1 committed Nov 10, 2021
1 parent 64fa11d commit afb7bc8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cortex/config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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:
{
Expand All @@ -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,
Expand Down

0 comments on commit afb7bc8

Please sign in to comment.