Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pasqualespica committed Dec 24, 2024
1 parent 99e3241 commit 200fae7
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/domains/gps-app/00_alert_gpd_ingestion.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ locals {

fn_name_for_alerts_exceptions = var.env_short != "p" ? [] : [
{
id : "paymentoption"
name : "PaymentOption"
id : "cdc-raw-auto.apd.payment_option"
name : "cdc-raw-auto.apd.payment_option"
},
{
id : "paymentposition"
name : "PaymentPosition"
id : "cdc-raw-auto.apd.payment_position"
name : "cdc-raw-auto.apd.payment_position"
},
{
id : "transfer"
name : "Transfer"
id : "cdc-raw-auto.apd.transfer"
name : "cdc-raw-auto.apd.transfer"
}
]

Expand Down Expand Up @@ -209,7 +209,8 @@ resource "azurerm_monitor_scheduled_query_rules_alert" "gpd-ingestion-manager-er
query = format(<<-QUERY
exceptions
| where cloud_RoleName == "%s"
| where outerMessage contains "${each.value.name} ingestion error Generic exception"
//| where outerMessage contains "${each.value.name} ingestion error Generic exception"
| where operation_Name startswith "${each.value.name}"
| order by timestamp desc
QUERY
, "pagopagpdingestionmanager" # from HELM's parameter WEBSITE_SITE_NAME
Expand All @@ -219,7 +220,7 @@ resource "azurerm_monitor_scheduled_query_rules_alert" "gpd-ingestion-manager-er
time_window = 15
trigger {
operator = "GreaterThanOrEqual"
threshold = 20
threshold = 30
}

}

0 comments on commit 200fae7

Please sign in to comment.