From 4aa4ac24d48e69ed7a258b74e01714c3c3f21683 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 6 Sep 2023 19:24:02 +0100 Subject: [PATCH] The partial probe map is enough for global coverage --- terraform/grafana_cloud.tf | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/terraform/grafana_cloud.tf b/terraform/grafana_cloud.tf index fbc4995..9c9cbcb 100644 --- a/terraform/grafana_cloud.tf +++ b/terraform/grafana_cloud.tf @@ -1,23 +1,6 @@ data "grafana_synthetic_monitoring_probes" "main" {} locals { - global_probes = [ - data.grafana_synthetic_monitoring_probes.main.probes.Amsterdam, - data.grafana_synthetic_monitoring_probes.main.probes.CapeTown, - data.grafana_synthetic_monitoring_probes.main.probes.Frankfurt, - data.grafana_synthetic_monitoring_probes.main.probes.London, - data.grafana_synthetic_monitoring_probes.main.probes.Mumbai, - data.grafana_synthetic_monitoring_probes.main.probes.NewYork, - data.grafana_synthetic_monitoring_probes.main.probes.NorthCalifornia, - data.grafana_synthetic_monitoring_probes.main.probes.Oregon, - data.grafana_synthetic_monitoring_probes.main.probes.Paris, - data.grafana_synthetic_monitoring_probes.main.probes.SaoPaulo, - data.grafana_synthetic_monitoring_probes.main.probes.Seoul, - data.grafana_synthetic_monitoring_probes.main.probes.Singapore, - data.grafana_synthetic_monitoring_probes.main.probes.Sydney, - data.grafana_synthetic_monitoring_probes.main.probes.Tokyo, - data.grafana_synthetic_monitoring_probes.main.probes.Toronto - ] partial_global_probes = [ data.grafana_synthetic_monitoring_probes.main.probes.CapeTown, data.grafana_synthetic_monitoring_probes.main.probes.Frankfurt, @@ -31,7 +14,6 @@ locals { data.grafana_synthetic_monitoring_probes.main.probes.Sydney, data.grafana_synthetic_monitoring_probes.main.probes.Toronto, ] - all_probes = data.grafana_synthetic_monitoring_probes.main.probes.* } resource "grafana_synthetic_monitoring_check" "vps_ping" { @@ -83,7 +65,7 @@ resource "grafana_synthetic_monitoring_check" "personal_website" { job = "Personal Website" target = "https://theorangeone.net/.health/" enabled = true - probes = local.global_probes + probes = local.partial_global_probes alert_sensitivity = "high" timeout = 5000 # 5 seconds