Skip to content

Commit

Permalink
Remove
Browse files Browse the repository at this point in the history
  • Loading branch information
jacopen committed Dec 23, 2022
1 parent 07797a7 commit ac80d47
Show file tree
Hide file tree
Showing 2 changed files with 134 additions and 134 deletions.
246 changes: 123 additions & 123 deletions uptime_robot/monitors.tf
Original file line number Diff line number Diff line change
@@ -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
# ]
# }
# }
22 changes: 11 additions & 11 deletions uptime_robot/status.tf
Original file line number Diff line number Diff line change
@@ -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,
# ]
# }

0 comments on commit ac80d47

Please sign in to comment.