265 lines
7.1 KiB
HCL
265 lines
7.1 KiB
HCL
# Global Terraform
|
|
variable "environment" {
|
|
description = "Architecture Environment"
|
|
type = string
|
|
}
|
|
|
|
# Global DataDog
|
|
variable "evaluation_delay" {
|
|
description = "Delay in seconds for the metric evaluation"
|
|
default = 900
|
|
}
|
|
|
|
variable "new_host_delay" {
|
|
description = "Delay in seconds before monitor new resource"
|
|
default = 300
|
|
}
|
|
|
|
variable "prefix_slug" {
|
|
description = "Prefix string to prepend between brackets on every monitors names"
|
|
default = ""
|
|
}
|
|
|
|
variable "notify_no_data" {
|
|
description = "Will raise no data alert if set to true"
|
|
default = true
|
|
}
|
|
|
|
variable "message" {
|
|
description = "Message sent when an alert is triggered"
|
|
}
|
|
|
|
variable "filter_tags_use_defaults" {
|
|
description = "Use default filter tags convention"
|
|
default = "true"
|
|
}
|
|
|
|
variable "filter_tags_custom" {
|
|
description = "Tags used for custom filtering when filter_tags_use_defaults is false"
|
|
default = "*"
|
|
}
|
|
|
|
variable "filter_tags_custom_excluded" {
|
|
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
|
|
default = ""
|
|
}
|
|
|
|
## ELB
|
|
|
|
variable "elb_no_healthy_instance_enabled" {
|
|
description = "Flag to enable ELB no healty instance monitor"
|
|
type = string
|
|
default = "true"
|
|
}
|
|
|
|
variable "elb_no_healthy_instance_extra_tags" {
|
|
description = "Extra tags for ELB no healty instance monitor"
|
|
type = list(string)
|
|
default = []
|
|
}
|
|
|
|
variable "elb_no_healthy_instance_message" {
|
|
description = "Custom message for ELB no healty instance monitor"
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "elb_no_healthy_instance_time_aggregator" {
|
|
description = "Monitor aggregator for ELB no healty instance [available values: min or max]"
|
|
type = string
|
|
default = "min"
|
|
}
|
|
|
|
variable "elb_no_healthy_instance_timeframe" {
|
|
description = "Monitor timeframe for ELB no healty instance [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]"
|
|
type = string
|
|
default = "last_5m"
|
|
}
|
|
|
|
variable "elb_no_healthy_instance_threshold_warning" {
|
|
description = "ELB no healthy instances warning threshold in percentage"
|
|
default = 100
|
|
}
|
|
|
|
variable "elb_4xx_enabled" {
|
|
description = "Flag to enable ELB 4xx errors monitor"
|
|
type = string
|
|
default = "true"
|
|
}
|
|
|
|
variable "elb_4xx_extra_tags" {
|
|
description = "Extra tags for ELB 4xx errors monitor"
|
|
type = list(string)
|
|
default = []
|
|
}
|
|
|
|
variable "elb_4xx_message" {
|
|
description = "Custom message for ELB 4xx errors monitor"
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "elb_4xx_timeframe" {
|
|
description = "Monitor timeframe for ELB 4xx errors [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]"
|
|
type = string
|
|
default = "last_5m"
|
|
}
|
|
|
|
variable "elb_4xx_threshold_warning" {
|
|
description = "loadbalancer 4xx warning threshold in percentage"
|
|
default = 5
|
|
}
|
|
|
|
variable "elb_4xx_threshold_critical" {
|
|
description = "loadbalancer 4xx critical threshold in percentage"
|
|
default = 10
|
|
}
|
|
|
|
variable "elb_5xx_enabled" {
|
|
description = "Flag to enable ELB 5xx errors monitor"
|
|
type = string
|
|
default = "true"
|
|
}
|
|
|
|
variable "elb_5xx_extra_tags" {
|
|
description = "Extra tags for ELB 5xx errors monitor"
|
|
type = list(string)
|
|
default = []
|
|
}
|
|
|
|
variable "elb_5xx_message" {
|
|
description = "Custom message for ELB 5xx errors monitor"
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "elb_5xx_timeframe" {
|
|
description = "Monitor timeframe for ELB 5xx errors [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]"
|
|
type = string
|
|
default = "last_5m"
|
|
}
|
|
|
|
variable "elb_5xx_threshold_warning" {
|
|
description = "loadbalancer 5xx warning threshold in percentage"
|
|
default = 5
|
|
}
|
|
|
|
variable "elb_5xx_threshold_critical" {
|
|
description = "loadbalancer 5xx critical threshold in percentage"
|
|
default = 10
|
|
}
|
|
|
|
variable "elb_backend_4xx_enabled" {
|
|
description = "Flag to enable ELB backend 4xx errors monitor"
|
|
type = string
|
|
default = "true"
|
|
}
|
|
|
|
variable "elb_backend_4xx_extra_tags" {
|
|
description = "Extra tags for ELB backend 4xx errors monitor"
|
|
type = list(string)
|
|
default = []
|
|
}
|
|
|
|
variable "elb_backend_4xx_message" {
|
|
description = "Custom message for ELB backend 4xx errors monitor"
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "elb_backend_4xx_timeframe" {
|
|
description = "Monitor timeframe for ELB backend 4xx errors [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]"
|
|
type = string
|
|
default = "last_5m"
|
|
}
|
|
|
|
variable "elb_backend_4xx_threshold_warning" {
|
|
description = "loadbalancer backend 4xx warning threshold in percentage"
|
|
default = 5
|
|
}
|
|
|
|
variable "elb_backend_4xx_threshold_critical" {
|
|
description = "loadbalancer backend 4xx critical threshold in percentage"
|
|
default = 10
|
|
}
|
|
|
|
variable "elb_backend_5xx_enabled" {
|
|
description = "Flag to enable ELB backend 5xx errors monitor"
|
|
type = string
|
|
default = "true"
|
|
}
|
|
|
|
variable "elb_backend_5xx_extra_tags" {
|
|
description = "Extra tags for ELB backend 5xx errors monitor"
|
|
type = list(string)
|
|
default = []
|
|
}
|
|
|
|
variable "elb_backend_5xx_message" {
|
|
description = "Custom message for ELB backend 5xx errors monitor"
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "elb_backend_5xx_timeframe" {
|
|
description = "Monitor timeframe for ELB backend 5xx errors [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]"
|
|
type = string
|
|
default = "last_5m"
|
|
}
|
|
|
|
variable "elb_backend_5xx_threshold_warning" {
|
|
description = "loadbalancer backend 5xx warning threshold in percentage"
|
|
default = 5
|
|
}
|
|
|
|
variable "elb_backend_5xx_threshold_critical" {
|
|
description = "loadbalancer backend 5xx critical threshold in percentage"
|
|
default = 10
|
|
}
|
|
|
|
variable "elb_backend_latency_enabled" {
|
|
description = "Flag to enable ELB backend latency monitor"
|
|
type = string
|
|
default = "true"
|
|
}
|
|
|
|
variable "elb_backend_latency_extra_tags" {
|
|
description = "Extra tags for ELB backend latency monitor"
|
|
type = list(string)
|
|
default = []
|
|
}
|
|
|
|
variable "elb_backend_latency_message" {
|
|
description = "Custom message for ELB backend latency monitor"
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "elb_backend_latency_time_aggregator" {
|
|
description = "Monitor aggregator for ELB backend latency [available values: min, max or avg]"
|
|
type = string
|
|
default = "min"
|
|
}
|
|
|
|
variable "elb_backend_latency_timeframe" {
|
|
description = "Monitor timeframe for ELB backend latency [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]"
|
|
type = string
|
|
default = "last_5m"
|
|
}
|
|
|
|
variable "elb_backend_latency_warning" {
|
|
description = "latency warning threshold in seconds"
|
|
default = 1
|
|
}
|
|
|
|
variable "elb_backend_latency_critical" {
|
|
description = "latency critical threshold in seconds"
|
|
default = 3
|
|
}
|
|
|
|
variable "artificial_requests_count" {
|
|
default = 5
|
|
description = "Number of false requests used to mitigate false positive in case of low trafic"
|
|
}
|
|
|