From 400a8aa47d0b0f571147a481056392e2e0a72ad2 Mon Sep 17 00:00:00 2001 From: Paul Rudin <pr414@cam.ac.uk> Date: Mon, 20 Jul 2020 10:33:21 +0100 Subject: [PATCH] more levers for the alerting config --- main.tf | 2 ++ variables.tf | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/main.tf b/main.tf index d39ffff..6681eba 100644 --- a/main.tf +++ b/main.tf @@ -144,4 +144,6 @@ module "uptime_monitoring" { project = var.project email_address = var.alerting_email_address monitored_domain = var.dns_name + uptime_timeout = var.alerting_uptime_timeout + uptime_period = var.alerting_uptime_period } diff --git a/variables.tf b/variables.tf index 08f94f5..d903a8c 100644 --- a/variables.tf +++ b/variables.tf @@ -94,3 +94,14 @@ Email address for basic uptime alerts. If empty (the default) no alerting will b EOT } +variable "alerting_uptime_timeout" { + default = "30s" + type = string + description = "timeout for http polling" +} + +variable "alerting_uptime_period" { + type = string + default = "300s" + description = "Frequency of uptime checks" +} -- GitLab