diff --git a/modules/infrastructure/healthchecksio.tf b/modules/infrastructure/healthchecksio.tf index 38a9735..aecd369 100644 --- a/modules/infrastructure/healthchecksio.tf +++ b/modules/infrastructure/healthchecksio.tf @@ -46,3 +46,17 @@ resource "healthchecksio_check" "healthcheck" { timeout = 300 grace = 600 } + +resource "healthchecksio_check" "status" { + name = "status.serguzim.me" + desc = "Monitoring for the status service" + + channels = [ + data.healthchecksio_channel.email.id, + data.healthchecksio_channel.signal.id, + data.healthchecksio_channel.ntfy.id, + ] + + timeout = 300 + grace = 600 +} diff --git a/modules/infrastructure/output.tf b/modules/infrastructure/output.tf index b9f2d22..b8e5905 100644 --- a/modules/infrastructure/output.tf +++ b/modules/infrastructure/output.tf @@ -40,6 +40,10 @@ output "healthchecksio" { "ping_url" = check.ping_url } } + status = { + "id" = healthchecksio_check.status.id + "ping_url" = healthchecksio_check.status.ping_url + } } }