Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Add Hetzner load balancer to health checks

Uku Taht256e8263c02c
diff --git a/test/e2e/main.tf b/test/e2e/main.tf
index a6a29fba76..93288f9ac5 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"