151 lines
4.4 KiB
HCL
Executable File

variable "region" {
type = string
description = "The AWS region that the resources to be monitored reside in"
}
variable "api_key" {
type = string
description = "The api_key that is used to send logs, metrics and traces to the datadog account"
}
variable "app_key" {
type = string
description = "The app_key that is used to manipulate the datadog API"
}
variable "datadog_site" {
type = string
description = "Datadog site to connect to (EU or US)"
default = "https://api.datadoghq.eu/"
}
variable "aws_profile" {
type = string
description = "Which AWS account is this for"
}
variable "cfa_slug" {
type = string
description = "Which CFA does this integration belong to"
}
variable "team" {
type = string
description = "Which team does this integration belong to"
}
variable "application" {
type = string
description = "What application does this monitor belong to "
}
variable "stage" {
type = string
description = "What stage does this monitor belong to (dev, tst, acc, prd) "
}
variable "alert_recipients" {
type = list(string)
description = ""
default = ["patrick.de.ruiter@sanoma.com"]
}
variable "recipients" {
type = list(string)
description = ""
default = ["patrick.de.ruiter@sanoma.com"]
}
variable "warning_recipients" {
type = list(string)
description = ""
default = ["patrick.de.ruiter@sanoma.com"]
}
variable "dd_rds_monitors" {
description = "Map of AWS accounts to configuration."
type = map(any)
default = {
rds_cpu_usage = {
region = "eu-west-1",
evaluation_delay = "0",
mesage = "plaaper de plaap",
escalation_message = "Response time for alert is expired",
renotify_interval = "0",
notify_audit = "false",
include_tags = "true",
require_full_window = "true",
},
rds_memory_usage = {
region = "eu-west-1",
evaluation_delay = "0",
mesage = "plaaper de plaap",
escalation_message = "Response time for alert is expired",
renotify_interval = "0",
notify_audit = "false",
include_tags = "true",
require_full_window = "true",
},
rds_database_connections = {
region = "eu-west-1",
evaluation_delay = "0",
mesage = "plaaper de plaap",
escalation_message = "Response time for alert is expired",
renotify_interval = "0",
notify_audit = "false",
include_tags = "true",
require_full_window = "true",
},
rds_freeable_memory = {
region = "eu-west-1",
evaluation_delay = "0",
mesage = "plaaper de plaap",
escalation_message = "Response time for alert is expired",
renotify_interval = "0",
notify_audit = "false",
include_tags = "true",
require_full_window = "true",
},
rds_free_memory = {
region = "eu-west-1",
evaluation_delay = "0",
mesage = "plaaper de plaap",
escalation_message = "Response time for alert is expired",
renotify_interval = "0",
notify_audit = "false",
include_tags = "true",
require_full_window = "true",
},
rds_cachable_memory = {
region = "eu-west-1",
evaluation_delay = "0",
mesage = "plaaper de plaap",
escalation_message = "Response time for alert is expired",
renotify_interval = "0",
notify_audit = "false",
include_tags = "true",
require_full_window = "true",
},
rds_total_storage_space = {
region = "eu-west-1",
evaluation_delay = "0",
mesage = "plaaper de plaap",
escalation_message = "Response time for alert is expired",
renotify_interval = "0",
notify_audit = "false",
include_tags = "true",
require_full_window = "true",
},
rds_free_storage_space = {
region = "eu-west-1",
evaluation_delay = "0",
mesage = "plaaper de plaap",
escalation_message = "Response time for alert is expired",
renotify_interval = "0",
notify_audit = "false",
include_tags = "true",
require_full_window = "true",
}
}
}