From 24bbeef1a1151a4ae7b72d7fd74c93d4df51d9e1 Mon Sep 17 00:00:00 2001 From: Sylvie Date: Thu, 24 Oct 2024 12:14:12 -0500 Subject: [PATCH] switch metric aggregation to total instead of count Co-Authored-By: Bella L. Quintero <96704946+pluckyswan@users.noreply.github.com> Co-Authored-By: Samuel Aquino --- operations/template/alert.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/operations/template/alert.tf b/operations/template/alert.tf index bca27ced1..671f96ec3 100644 --- a/operations/template/alert.tf +++ b/operations/template/alert.tf @@ -134,7 +134,7 @@ resource "azurerm_monitor_metric_alert" "azure_4XX_alert" { criteria { metric_namespace = "Microsoft.Web/sites" metric_name = "Http4xx" - aggregation = "Count" + aggregation = "Total" operator = "GreaterThanOrEqual" threshold = 3 } @@ -174,7 +174,7 @@ resource "azurerm_monitor_metric_alert" "azure_5XX_alert" { criteria { metric_namespace = "Microsoft.Web/sites" metric_name = "Http5xx" - aggregation = "Count" + aggregation = "Total" operator = "GreaterThanOrEqual" threshold = 1 }