From 9de6d3d5fc2fb61f4a86e2738c313ee6cad50cd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cenk=20K=C3=BCc=C3=BCk?= Date: Mon, 14 Oct 2024 16:57:43 +0100 Subject: [PATCH] add monitoring for websocket endpoint (#4676) --- test/e2e/main.tf | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/test/e2e/main.tf b/test/e2e/main.tf index f9cc2d5f8..cbe71612a 100644 --- a/test/e2e/main.tf +++ b/test/e2e/main.tf @@ -120,6 +120,44 @@ resource "checkly_check" "plausible-io-lb-health" { } } +resource "checkly_check" "websocket-plausible-io--health" { + name = "Check websocket.plausible.io/api/health" + type = "API" + activated = true + frequency = 1 + + group_id = checkly_check_group.reachability.id + + retry_strategy { + type = "FIXED" + max_retries = 2 + } + + request { + url = "https://websocket.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-ingestion" { name = "Check plausible.io/api/event" type = "API"