mirror of
https://github.com/plausible/analytics.git
synced 2024-12-22 17:11:36 +03:00
Integrate ingestion monitoring data into instatus (#3515)
This commit is contained in:
parent
3ba57a04fc
commit
0c2e6b8751
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user