Skip to content

Commit

Permalink
Don't change the name of the alert based on value as it forces a recr…
Browse files Browse the repository at this point in the history
…eation
  • Loading branch information
sgibson91 committed Jun 12, 2024
1 parent e7b7549 commit 4b27cb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion terraform/azure/pagerduty.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ resource "azurerm_monitor_action_group" "alerts" {
}

resource "azurerm_monitor_metric_alert" "disk_space_full_alert" {
name = "Used disk space greater than ${local.storage_threshold} GB on ${var.subscription_id}"
# Changing the name forces a recreation every time we apply
name = "Used disk space approaching capacity on Azure Subscription ${var.subscription_id}"
resource_group_name = var.resourcegroup_name
scopes = [azurerm_storage_account.homes.id]
description = "Action will be triggered when used disk space is greater than ${local.storage_threshold} GB."
Expand Down

0 comments on commit 4b27cb2

Please sign in to comment.