Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea committed Jan 16, 2024
1 parent afde04f commit 4ef2e92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions environments/_modules/gateway-serverless/monitoring.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ resource "google_monitoring_notification_channel" "sres_email" {
module "poweb_lb_uptime" {
source = "../host_uptime_monitor"

name = "gateway-poweb"
name = "gateway-${var.instance_name}-poweb"
host_name = google_dns_record_set.poweb.name
notification_channels = [for c in google_monitoring_notification_channel.sres_email : c.name]
gcp_project_id = var.gcp_project_id
Expand All @@ -43,7 +43,7 @@ module "poweb_lb_uptime" {
module "pohttp_lb_uptime" {
source = "../host_uptime_monitor"

name = "gateway-pohttp"
name = "gateway-${var.instance_name}-pohttp"
host_name = google_dns_record_set.pohttp.name
notification_channels = [for c in google_monitoring_notification_channel.sres_email : c.name]
gcp_project_id = var.gcp_project_id
Expand All @@ -52,7 +52,7 @@ module "pohttp_lb_uptime" {
module "cogrpc_lb_uptime" {
source = "../host_uptime_monitor"

name = "gateway-cogrpc"
name = "gateway-${var.instance_name}-cogrpc"
probe_type = "tcp"
host_name = google_dns_record_set.cogrpc.name
notification_channels = [for c in google_monitoring_notification_channel.sres_email : c.name]
Expand Down
2 changes: 1 addition & 1 deletion environments/_modules/host_uptime_monitor/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ resource "google_monitoring_uptime_check_config" "main" {
}
}

resource "google_monitoring_alert_policy" "poweb_lb_uptime" {
resource "google_monitoring_alert_policy" "uptime" {
display_name = "${var.name}-uptime"
combiner = "OR"
conditions {
Expand Down

0 comments on commit 4ef2e92

Please sign in to comment.