infrastructure/terraform/uptimerobot.tf
Jake Howard e86ed81102
Decommission decker server
It's been replaced by prometheus running internally, and uptimerobot checking.
2022-12-09 19:04:54 +00:00

39 lines
951 B
HCL

resource "uptimerobot_monitor" "vps_ping" {
for_each = {
casey = linode_instance.casey.ip_address
walker = vultr_instance.walker.main_ip
grimes = vultr_instance.grimes.main_ip
}
friendly_name = title(each.key)
type = "ping"
url = each.value
interval = 600
}
resource "uptimerobot_monitor" "website" {
friendly_name = "Personal website"
type = "http"
url = "https://theorangeone.net/.health/"
interval = 300
}
resource "uptimerobot_monitor" "grafana" {
friendly_name = "Grafana"
type = "http"
url = "https://grafana.jakehoward.tech/api/health"
interval = 300
}
resource "uptimerobot_monitor" "whoami" {
friendly_name = "Whoami"
type = "http"
url = "https://whoami.theorangeone.net"
interval = 300
}
resource "uptimerobot_status_page" "main" {
friendly_name = "TheOrangeOne"
sort = "a-z"
}