Skip to content

Commit

Permalink
removed alert from old resource
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldisaro committed Sep 5, 2023
1 parent e70663e commit 79a6abf
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions src/domains/citizen-auth-app/04_fims.tf
Original file line number Diff line number Diff line change
Expand Up @@ -515,40 +515,3 @@ resource "azurerm_monitor_autoscale_setting" "appservice_fims" {
}
}
}

resource "azurerm_monitor_metric_alert" "too_many_http_5xx" {
count = var.fims_enabled ? 1 : 0

enabled = false

name = "[IO-COMMONS | FIMS] Too many 5xx"
resource_group_name = azurerm_resource_group.fims_rg[0].name
scopes = [module.appservice_fims[0].id]

description = "Whenever the total http server errors exceeds a dynamic threashold."
severity = 0
window_size = "PT5M"
frequency = "PT5M"
auto_mitigate = false

# Metric info
# https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/metrics-supported#microsoftwebsites
dynamic_criteria {
metric_namespace = "Microsoft.Web/sites"
metric_name = "Http5xx"
aggregation = "Total"
operator = "GreaterThan"
alert_sensitivity = "Low"
evaluation_total_count = 4
evaluation_failure_count = 4
skip_metric_validation = false

}

action {
action_group_id = data.azurerm_monitor_action_group.error_action_group.id
webhook_properties = null
}

tags = var.tags
}

0 comments on commit 79a6abf

Please sign in to comment.