From ac80d4725e0676678140681ccd959bbd613e493c Mon Sep 17 00:00:00 2001 From: Kazuto Kusama Date: Fri, 23 Dec 2022 18:34:22 +0900 Subject: [PATCH] Remove --- uptime_robot/monitors.tf | 246 +++++++++++++++++++-------------------- uptime_robot/status.tf | 22 ++-- 2 files changed, 134 insertions(+), 134 deletions(-) diff --git a/uptime_robot/monitors.tf b/uptime_robot/monitors.tf index be2154e..771b076 100644 --- a/uptime_robot/monitors.tf +++ b/uptime_robot/monitors.tf @@ -1,123 +1,123 @@ -# Create a monitor -resource "uptimerobot_monitor" "dreamkast" { - friendly_name = "Dreamkast" - type = "http" - url = "https://event.cloudnativedays.jp" - - # alert_contact { - # id = uptimerobot_alert_contact.slack.id - # } - - # alert_contact { - # id = data.uptimerobot_alert_contact.default_alert_contact.id - # } - - interval = 300 - - lifecycle { - ignore_changes = [ - alert_contact - ] - } -} - -moved { - from = uptimerobot_monitor.dreamkast-by-terraform - to = uptimerobot_monitor.dreamkast -} - -resource "uptimerobot_monitor" "website" { - friendly_name = "Website" - type = "http" - url = "https://cloudnativedays.jp" - - # alert_contact { - # id = uptimerobot_alert_contact.slack.id - # } - - # alert_contact { - # id = data.uptimerobot_alert_contact.default_alert_contact.id - # } - - interval = 300 - - lifecycle { - ignore_changes = [ - alert_contact - ] - } -} - -moved { - from = uptimerobot_monitor.website-by-terraform - to = uptimerobot_monitor.website -} - -resource "uptimerobot_monitor" "grafana" { - friendly_name = "Grafana" - type = "http" - url = "https://grafana.cloudnativedays.jp" - - # alert_contact { - # id = uptimerobot_alert_contact.slack.id - # } - - # alert_contact { - # id = data.uptimerobot_alert_contact.default_alert_contact.id - # } - - interval = 300 - - lifecycle { - ignore_changes = [ - alert_contact - ] - } -} - -resource "uptimerobot_monitor" "nextcloud" { - friendly_name = "Nextcloud" - type = "http" - url = "https://uploader.cloudnativedays.jp" - - # alert_contact { - # id = uptimerobot_alert_contact.slack.id - # } - - # alert_contact { - # id = data.uptimerobot_alert_contact.default_alert_contact.id - # } - - interval = 300 - - lifecycle { - ignore_changes = [ - alert_contact - ] - } -} - -resource "uptimerobot_monitor" "prometheus" { - friendly_name = "Prometheus" - type = "http" - url = "https://prometheus.cloudnativedays.jp/-/healthy" - http_auth_type = "basic" - http_username = "prometheus" - http_password = var.prometheus_password - - # alert_contact { - # id = uptimerobot_alert_contact.slack.id - # } - - # alert_contact { - # id = data.uptimerobot_alert_contact.default_alert_contact.id - # } - - interval = 300 - - lifecycle { - ignore_changes = [ - alert_contact - ] - } -} +# # Create a monitor +# resource "uptimerobot_monitor" "dreamkast" { +# friendly_name = "Dreamkast" +# type = "http" +# url = "https://event.cloudnativedays.jp" + +# # alert_contact { +# # id = uptimerobot_alert_contact.slack.id +# # } + +# # alert_contact { +# # id = data.uptimerobot_alert_contact.default_alert_contact.id +# # } + +# interval = 300 + +# lifecycle { +# ignore_changes = [ +# alert_contact +# ] +# } +# } + +# moved { +# from = uptimerobot_monitor.dreamkast-by-terraform +# to = uptimerobot_monitor.dreamkast +# } + +# resource "uptimerobot_monitor" "website" { +# friendly_name = "Website" +# type = "http" +# url = "https://cloudnativedays.jp" + +# # alert_contact { +# # id = uptimerobot_alert_contact.slack.id +# # } + +# # alert_contact { +# # id = data.uptimerobot_alert_contact.default_alert_contact.id +# # } + +# interval = 300 + +# lifecycle { +# ignore_changes = [ +# alert_contact +# ] +# } +# } + +# moved { +# from = uptimerobot_monitor.website-by-terraform +# to = uptimerobot_monitor.website +# } + +# resource "uptimerobot_monitor" "grafana" { +# friendly_name = "Grafana" +# type = "http" +# url = "https://grafana.cloudnativedays.jp" + +# # alert_contact { +# # id = uptimerobot_alert_contact.slack.id +# # } + +# # alert_contact { +# # id = data.uptimerobot_alert_contact.default_alert_contact.id +# # } + +# interval = 300 + +# lifecycle { +# ignore_changes = [ +# alert_contact +# ] +# } +# } + +# resource "uptimerobot_monitor" "nextcloud" { +# friendly_name = "Nextcloud" +# type = "http" +# url = "https://uploader.cloudnativedays.jp" + +# # alert_contact { +# # id = uptimerobot_alert_contact.slack.id +# # } + +# # alert_contact { +# # id = data.uptimerobot_alert_contact.default_alert_contact.id +# # } + +# interval = 300 + +# lifecycle { +# ignore_changes = [ +# alert_contact +# ] +# } +# } + +# resource "uptimerobot_monitor" "prometheus" { +# friendly_name = "Prometheus" +# type = "http" +# url = "https://prometheus.cloudnativedays.jp/-/healthy" +# http_auth_type = "basic" +# http_username = "prometheus" +# http_password = var.prometheus_password + +# # alert_contact { +# # id = uptimerobot_alert_contact.slack.id +# # } + +# # alert_contact { +# # id = data.uptimerobot_alert_contact.default_alert_contact.id +# # } + +# interval = 300 + +# lifecycle { +# ignore_changes = [ +# alert_contact +# ] +# } +# } diff --git a/uptime_robot/status.tf b/uptime_robot/status.tf index 6944c8a..e4592b7 100644 --- a/uptime_robot/status.tf +++ b/uptime_robot/status.tf @@ -1,11 +1,11 @@ -resource "uptimerobot_status_page" "cnd" { - friendly_name = "CloudNative Days Status" - custom_domain = "status.cloudnativedays.jp" - sort = "a-z" - monitors = [ - uptimerobot_monitor.dreamkast.id, - uptimerobot_monitor.website.id, - uptimerobot_monitor.grafana.id, - uptimerobot_monitor.prometheus.id, - ] -} +# resource "uptimerobot_status_page" "cnd" { +# friendly_name = "CloudNative Days Status" +# custom_domain = "status.cloudnativedays.jp" +# sort = "a-z" +# monitors = [ +# uptimerobot_monitor.dreamkast.id, +# uptimerobot_monitor.website.id, +# uptimerobot_monitor.grafana.id, +# uptimerobot_monitor.prometheus.id, +# ] +# }