Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 3707eb8

Browse files
authored
Merge pull request #381 from grafana/support-azure-am-config
Alertmanager: Allow storage configuration to support Azure
2 parents e7c4d89 + b0d1efe commit 3707eb8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
* `CortexAlertmanagerReplicationFailing`
5252
* `CortexAlertmanagerPersistStateFailing`
5353
* `CortexAlertmanagerInitialSyncFailed`
54+
* [ENHANCEMENT] Add support for Azure storage in Alertmanager configuration. #381
5455
* [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
5556
* [BUGFIX] Alertmanager: fixed `--alertmanager.cluster.peers` CLI flag passed to alertmanager when HA is enabled. #329
5657
* [BUGFIX] Fixed `CortexInconsistentRuntimeConfig` metric. #335

cortex/config.libsonnet

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,13 +282,19 @@
282282

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

287288
alertmanagerStorageClientConfig:
288289
{
289290
'alertmanager-storage.backend': $._config.alertmanager_client_type,
290291
} +
291292
{
293+
azure: {
294+
'alertmanager-storage.azure.account-key': $._config.alertmanager_azure_account_key,
295+
'alertmanager-storage.azure.account-name': $._config.alertmanager_azure_account_name,
296+
'alertmanager-storage.azure.container-name': $._config.alertmanager_azure_container_name,
297+
},
292298
gcs: {
293299
'alertmanager-storage.gcs.bucket-name': $._config.alertmanager_gcs_bucket_name,
294300
},

0 commit comments

Comments
 (0)