Skip to content

Commit

Permalink
Merge pull request #1486 from CDCgov/switch-metric-aggregation-to-tot…
Browse files Browse the repository at this point in the history
…al-instead-of-count

4XX and 5XX Alert Aggregation to Total Instead of Count
  • Loading branch information
halprin authored Oct 24, 2024
2 parents d1f00d6 + 388ce32 commit 1440ce6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions operations/template/alert.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 1440ce6

Please sign in to comment.