Skip to content

Commit

Permalink
Adding statuscake alerts for prod
Browse files Browse the repository at this point in the history
  • Loading branch information
shaheislamdfe committed Oct 6, 2024
1 parent 6429ce1 commit e75147c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
17 changes: 13 additions & 4 deletions terraform/application/config/production.tfvars.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,23 @@
"cluster": "production",
"namespace": "tra-production",
"evidence_container_retention_in_days": 30,
"enable_monitoring": false,
"external_url": "https://access-your-teaching-qualifications.education.gov.uk/healthcheck",
"statuscake_contact_groups": [282453],
"enable_monitoring": true,
"replicas": 2,
"azure_enable_high_availability": true,
"azure_enable_monitoring": false,
"postgres_flexible_server_sku": "GP_Standard_D2s_v3",
"enable_postgres_backup_storage": true,
"send_traffic_to_maintenance_page": false,
"account_replication_type": "GRS"
"account_replication_type": "GRS",
"statuscake_alerts": {
"website_url": [
"https://access-your-teaching-qualifications.education.gov.uk/healthcheck",
"https://check-a-teachers-record.education.gov.uk/healthcheck"
],
"ssl_url": [
"https://access-your-teaching-qualifications.education.gov.uk",
"https://check-a-teachers-record.education.gov.uk"
],
"contact_groups": [282453]
}
}
9 changes: 9 additions & 0 deletions terraform/application/statuscake.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module "statuscake" {

count = var.enable_monitoring? 1 : 0
source = "./vendor/modules/aks//monitoring/statuscake"

uptime_urls = var.statuscake_alerts.website_url
ssl_urls = var.statuscake_alerts.ssl_url
contact_groups = var.statuscake_alerts.contact_groups
}

0 comments on commit e75147c

Please sign in to comment.