From 256e8263c02c1d5b2b86a22cd6808029b09ac221 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Mon, 9 Jan 2023 18:02:38 +0200 Subject: [PATCH] Add Hetzner load balancer to health checks --- test/e2e/main.tf | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/test/e2e/main.tf b/test/e2e/main.tf index a6a29fba7..93288f9ac 100644 --- a/test/e2e/main.tf +++ b/test/e2e/main.tf @@ -65,6 +65,40 @@ resource "checkly_check" "plausible-io-api-health" { } } +resource "checkly_check" "plausible-io-lb-health" { + name = "Check one.lb.plausible.io/api/health" + type = "API" + activated = true + frequency = 1 + double_check = true + + group_id = checkly_check_group.reachability.id + + request { + url = "https://one.lb.plausible.io/api/health" + follow_redirects = false + skip_ssl = false + assertion { + source = "JSON_BODY" + property = "$.clickhouse" + comparison = "EQUALS" + target = "ok" + } + assertion { + source = "JSON_BODY" + property = "$.postgres" + comparison = "EQUALS" + target = "ok" + } + assertion { + source = "JSON_BODY" + property = "$.sites_cache" + comparison = "EQUALS" + target = "ok" + } + } +} + resource "checkly_check" "plausible-io-custom-domain-server-health" { name = "Check custom.plausible.io" type = "API"