Skip to content

Commit

Permalink
Update to test email alerts instead of slack alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
saquino0827 committed May 8, 2024
1 parent 7351c4a commit fbbcb25
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions operations/template/alert.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ resource "azurerm_monitor_action_group" "monitor" {
resource_group_name = data.azurerm_resource_group.group.name
short_name = "cdcti-alerts"

webhook_receiver {
name = "cdcti-flexion-slack-webhook-receiver"
service_uri = var.alert_slack_webhook
use_common_alert_schema = false
email_receiver {
name = "cdcti-flexion-slack-email-receiver"
email_address = var.alert_slack_webhook
}
}

Expand All @@ -28,6 +27,5 @@ resource "azurerm_monitor_metric_alert" "alert" {

action {
action_group_id = azurerm_monitor_action_group.monitor.id
custom_webhook_payload = "{ \"text\" : \"Warning: ${azurerm_postgresql_flexible_server.database.id} connection has failed once in the last minute!\"}"
}
}

0 comments on commit fbbcb25

Please sign in to comment.