From 4e589ff06948932dd4d4d18a09b566ca82fdea05 Mon Sep 17 00:00:00 2001 From: Sylvie Date: Fri, 22 Nov 2024 15:30:48 -0600 Subject: [PATCH] Remove dynamic memory alert since it is unhelpful Co-Authored-By: Samuel Aquino Co-Authored-By: jcrichlake <145698165+jcrichlake@users.noreply.github.com> Co-Authored-By: Bella L. Quintero <96704946+pluckyswan@users.noreply.github.com> Co-Authored-By: James Gilmore <109554461+GilmoreA6@users.noreply.github.com> --- operations/template/alert.tf | 41 ------------------------------------ 1 file changed, 41 deletions(-) diff --git a/operations/template/alert.tf b/operations/template/alert.tf index 9e666a340..3d899f848 100644 --- a/operations/template/alert.tf +++ b/operations/template/alert.tf @@ -217,47 +217,6 @@ resource "azurerm_monitor_metric_alert" "azure_5XX_alert" { } } -resource "azurerm_monitor_metric_alert" "dynamic_memory_alert" { - count = local.non_pr_environment ? 1 : 0 - name = "cdcti-${var.environment}-dynamic-memory-alert" - resource_group_name = data.azurerm_resource_group.group.name - scopes = [azurerm_linux_web_app.api.id] - description = "This alert checks if the backpack is starting to get heavy but does it in a way that keeps watching how much stuff is added. If it gets too full, it lets you know so you can take action before it becomes a problem." - severity = 2 - frequency = "PT5M" - window_size = "PT15M" - - dynamic_criteria { - metric_name = "MemoryWorkingSet" - metric_namespace = "Microsoft.Web/sites" - aggregation = "Average" - operator = "GreaterThan" - alert_sensitivity = "Medium" - } - - action { - action_group_id = azurerm_monitor_action_group.notify_slack_email[count.index].id - } - - lifecycle { - # Ignore changes to tags because the CDC sets these automagically - ignore_changes = [ - tags["business_steward"], - tags["center"], - tags["environment"], - tags["escid"], - tags["funding_source"], - tags["pii_data"], - tags["security_compliance"], - tags["security_steward"], - tags["support_group"], - tags["system"], - tags["technical_steward"], - tags["zone"] - ] - } -} - resource "azurerm_monitor_metric_alert" "database_memory_alert" { count = local.non_pr_environment ? 1 : 0 name = "cdcti-${var.environment}-database-memory-alert"