Skip to content

Commit

Permalink
Merge pull request grafana/cortex-jsonnet#381 from grafana/support-az…
Browse files Browse the repository at this point in the history
…ure-am-config

Alertmanager: Allow storage configuration to support Azure
  • Loading branch information
gotjosh authored Aug 25, 2021
2 parents f8d8e14 + 608e9ea commit 9a526e6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion operations/mimir/config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,19 @@

alertmanager_client_type: error 'you must specify a storage backend type for the alertmanager (azure, gcs, s3, local)',
alertmanager_s3_bucket_name: error 'you must specify the alertmanager S3 bucket name',
alertmanager_gcs_bucket_name: error 'must specify a GCS bucket name',
alertmanager_gcs_bucket_name: error 'you must specify a GCS bucket name',
alertmanager_azure_container_name: error 'you must specify an Azure container name',

alertmanagerStorageClientConfig:
{
'alertmanager-storage.backend': $._config.alertmanager_client_type,
} +
{
azure: {
'alertmanager-storage.azure.account-key': $._config.alertmanager_azure_account_key,
'alertmanager-storage.azure.account-name': $._config.alertmanager_azure_account_name,
'alertmanager-storage.azure.container-name': $._config.alertmanager_azure_container_name,
},
gcs: {
'alertmanager-storage.gcs.bucket-name': $._config.alertmanager_gcs_bucket_name,
},
Expand Down

0 comments on commit 9a526e6

Please sign in to comment.