chore(portal): Send alert notifications to mobile channels (#4463)

This commit is contained in:
Andrew Dryga
2024-04-02 11:56:46 -06:00
committed by GitHub
parent 2468a12b49
commit ea351465a3
3 changed files with 22 additions and 1 deletions

View File

@@ -215,6 +215,20 @@ module "ops" {
pagerduty_auth_token = var.pagerduty_auth_token
additional_notification_channels = [
# Andrew
## Mobile App
"projects/firezone-prod/notificationChannels/203795594709100952",
## SMS
"projects/firezone-prod/notificationChannels/1314108963890678627",
# Brian
## Mobile App
"projects/firezone-prod/notificationChannels/16177228986287373178",
# Jamil
## Mobile App
"projects/firezone-prod/notificationChannels/1608881766413151733"
]
api_host = module.api.host
web_host = module.web.host
}

View File

@@ -29,7 +29,8 @@ resource "google_monitoring_notification_channel" "pagerduty" {
locals {
notification_channels = concat(
[google_monitoring_notification_channel.slack.name],
var.pagerduty_auth_token != null ? [google_monitoring_notification_channel.pagerduty[0].name] : []
var.additional_notification_channels,
google_monitoring_notification_channel.pagerduty[*].name
)
}

View File

@@ -18,6 +18,12 @@ variable "pagerduty_auth_token" {
default = null
}
variable "additional_notification_channels" {
type = list(string)
default = []
description = "List of mobile app notification channels"
}
variable "api_host" {
type = string
}