Monitor servers over V6

This commit is contained in:
Jake Howard 2023-04-23 17:14:29 +01:00
parent 0b65498330
commit 955db140b1
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -43,7 +43,7 @@ resource "grafana_synthetic_monitoring_check" "vps_ping" {
grimes = vultr_instance.grimes.main_ip grimes = vultr_instance.grimes.main_ip
} }
job = each.key job = "${each.key} v4"
target = each.value target = each.value
enabled = true enabled = true
probes = local.partial_global_probes probes = local.partial_global_probes
@ -53,8 +53,29 @@ resource "grafana_synthetic_monitoring_check" "vps_ping" {
settings { settings {
ping { ping {
ip_version = "Any" ip_version = "V4"
dont_fragment = true }
}
}
resource "grafana_synthetic_monitoring_check" "vps_ping_v6" {
for_each = {
casey = split("/", linode_instance.casey.ipv6)[0]
walker = vultr_instance.walker.v6_main_ip
grimes = vultr_instance.grimes.v6_main_ip
}
job = "${each.key} v6"
target = each.value
enabled = true
probes = local.partial_global_probes
alert_sensitivity = "medium"
frequency = 120 * 1000 # 2 minutes
settings {
ping {
ip_version = "V6"
} }
} }
} }