Skip to content

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

Integrate ingestion monitoring data into instatus (#3515)

Cenk Kücük0c2e6b8751fc
diff --git a/test/e2e/main.tf b/test/e2e/main.tf
index b1942a75b0..f9cc2d5f8a 100644
--- a/test/e2e/main.tf
+++ b/test/e2e/main.tf
@@ -30,6 +30,10 @@ variable "checkly_alert_channel_instatus_webhook_url" {
sensitive = true
}
+variable "checkly_alert_channel_instatus_webhook_url_ingestion" {
+ sensitive = true
+}
+
provider "checkly" {
api_key = var.checkly_api_key
account_id = var.checkly_account_id
@@ -163,6 +167,12 @@ EOT
comparison = "IS_EMPTY"
}
}
+
+ alert_channel_subscription {
+ channel_id = checkly_alert_channel.instatus_ingestion.id
+ activated = true
+ }
+
}
resource "checkly_check" "plausible-io-tracker-script" {
@@ -298,3 +308,14 @@ EOT
url = var.checkly_alert_channel_instatus_webhook_url
}
}
+
+resource "checkly_alert_channel" "instatus_ingestion" {
+ webhook {
+ name = "Instatus integration - ingestion"
+ method = "POST"
+ template = <<EOT
+ {"alert": "{{ALERT_TYPE}}"}
+EOT
+ url = var.checkly_alert_channel_instatus_webhook_url_ingestion
+ }
+}