Pārlūkot izejas kodu

Moves Sensu DNS Timeouts to a global variable

Reducing alert fatigue
Fred Damstra 4 gadi atpakaļ
vecāks
revīzija
b3806f1953

+ 8 - 0
globals.hcl

@@ -110,6 +110,14 @@ locals {
     "fdamstra" = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDF3pGU9+HufgfEhPP7P0Lt7kqfGWLTGd6sfJgSypcSo3FP1XhwFOWkaNvZIpoIeQXhux5vTm+RoqYZ/3Gj7hcGMLdoHWArvLHD2AGjxbFnsmiCioQgsC/rYLBjiWNsDdVF5Arofby/RwzivMAi7yivhY4nGzXPsHZoucB0Wi34/9AmxbvXWv6ckuWkMjrXVe+uwFje3U7jQHRW9jQRpCRRfUjVA4FmH0PWqWFBlt/zqsDPOzbxNNhAvyrJho7jVBNjCLsq0++lT8BDKrYbaZiT0F2c9uIDRpHJSdjpqVCf9bghmeJWYMoNHAkGR7WCFjPCJ7QM57a2oRBtm1A/EWcr",
   }
 
+  # Sensu Thresholds
+  sensu_checks = {
+    "dns": {
+       "warning":  "5.0", # warn if no resolution for 5 seconds
+       "critical": "10.0" # critical if no resolution for 10 seconds
+    },
+  }
+
   # Some sane defaults we don't want to specify everywhere
   is_legacy = false # By default, accounts are not legacy accounts
   extra_ebs_key_admins = [ ]

+ 1 - 1
prod/aws-us-gov/mdr-prod-c2/096-sensu-configuration/terragrunt.hcl

@@ -13,7 +13,7 @@ locals {
 # working directory, into a temporary folder, and execute your Terraform commands in that folder.
 terraform {
   # Double slash is intentional and required to show root of modules
-  source = "git@github.mdr.defpoint.com:mdr-engineering/xdr-terraform-modules.git//base/sensu-configuration?ref=v1.20.5"
+  source = "git@github.mdr.defpoint.com:mdr-engineering/xdr-terraform-modules.git//base/sensu-configuration?ref=v1.20.7"
 
 }
 

+ 1 - 1
test/aws-us-gov/mdr-test-c2/096-sensu-configuration/terragrunt.hcl

@@ -13,7 +13,7 @@ locals {
 # working directory, into a temporary folder, and execute your Terraform commands in that folder.
 terraform {
   # Double slash is intentional and required to show root of modules
-  source = "git@github.mdr.defpoint.com:mdr-engineering/xdr-terraform-modules.git//base/sensu-configuration?ref=v1.20.5"
+  source = "git@github.mdr.defpoint.com:mdr-engineering/xdr-terraform-modules.git//base/sensu-configuration?ref=v1.20.7"
 
 }