diff --git a/CHANGELOG.md b/CHANGELOG.md index 40b51d48..c14acd42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -51,6 +51,7 @@ * `CortexAlertmanagerReplicationFailing` * `CortexAlertmanagerPersistStateFailing` * `CortexAlertmanagerInitialSyncFailed` +* [ENHANCEMENT] Add support for Azure storage in Alertmanager configuration. #381 * [BUGFIX] Fixed `CortexIngesterHasNotShippedBlocks` alert false positive in case an ingester instance had ingested samples in the past, then no traffic was received for a long period and then it started receiving samples again. #308 * [BUGFIX] Alertmanager: fixed `--alertmanager.cluster.peers` CLI flag passed to alertmanager when HA is enabled. #329 * [BUGFIX] Fixed `CortexInconsistentRuntimeConfig` metric. #335 diff --git a/cortex/config.libsonnet b/cortex/config.libsonnet index 57fb7a2d..488e11fe 100644 --- a/cortex/config.libsonnet +++ b/cortex/config.libsonnet @@ -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, },