155 lines
3.8 KiB
HCL
155 lines
3.8 KiB
HCL
# Datadog global variables
|
|
|
|
variable "environment" {
|
|
description = "Architecture environment"
|
|
type = "string"
|
|
}
|
|
|
|
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 "message" {
|
|
description = "Message sent when a monitor is triggered"
|
|
}
|
|
|
|
variable "delay" {
|
|
description = "Delay in seconds for the metric evaluation"
|
|
default = 900
|
|
}
|
|
|
|
# Datadog monitors variables
|
|
|
|
variable "alb_no_healthy_instances_silenced" {
|
|
description = "Groups to mute for ALB no healthy instances monitor"
|
|
type = "map"
|
|
default = {}
|
|
}
|
|
|
|
variable "alb_no_healthy_instances_message" {
|
|
description = "Custom message for ALB no healthy instances monitor"
|
|
type = "string"
|
|
default = ""
|
|
}
|
|
|
|
variable "latency_silenced" {
|
|
description = "Groups to mute for ALB latency monitor"
|
|
type = "map"
|
|
default = {}
|
|
}
|
|
|
|
variable "latency_message" {
|
|
description = "Custom message for ALB latency monitor"
|
|
type = "string"
|
|
default = ""
|
|
}
|
|
|
|
variable "latency_threshold_critical" {
|
|
default = 1000
|
|
description = "latency critical threshold in milliseconds"
|
|
}
|
|
|
|
variable "latency_threshold_warning" {
|
|
default = 500
|
|
description = "latency warning threshold in milliseconds"
|
|
}
|
|
|
|
variable "httpcode_elb_4xx_silenced" {
|
|
description = "Groups to mute for ALB httpcode 4xx monitor"
|
|
type = "map"
|
|
default = {}
|
|
}
|
|
|
|
variable "httpcode_elb_4xx_message" {
|
|
description = "Custom message for ALB httpcode 4xx monitor"
|
|
type = "string"
|
|
default = ""
|
|
}
|
|
|
|
variable "httpcode_elb_4xx_threshold_critical" {
|
|
default = 80
|
|
description = "loadbalancer 4xx critical threshold in percentage"
|
|
}
|
|
|
|
variable "httpcode_elb_4xx_threshold_warning" {
|
|
default = 60
|
|
description = "loadbalancer 4xx warning threshold in percentage"
|
|
}
|
|
|
|
variable "httpcode_target_4xx_silenced" {
|
|
description = "Groups to mute for ALB target httpcode 4xx monitor"
|
|
type = "map"
|
|
default = {}
|
|
}
|
|
|
|
variable "httpcode_target_4xx_message" {
|
|
description = "Custom message for ALB target httpcode 4xx monitor"
|
|
type = "string"
|
|
default = ""
|
|
}
|
|
|
|
variable "httpcode_target_4xx_threshold_critical" {
|
|
default = 80
|
|
description = "target 4xx critical threshold in percentage"
|
|
}
|
|
|
|
variable "httpcode_target_4xx_threshold_warning" {
|
|
default = 60
|
|
description = "target 4xx warning threshold in percentage"
|
|
}
|
|
|
|
variable "httpcode_elb_5xx_silenced" {
|
|
description = "Groups to mute for ALB httpcode 5xx monitor"
|
|
type = "map"
|
|
default = {}
|
|
}
|
|
|
|
variable "httpcode_elb_5xx_message" {
|
|
description = "Custom message for ALB httpcode 5xx monitor"
|
|
type = "string"
|
|
default = ""
|
|
}
|
|
|
|
variable "httpcode_elb_5xx_threshold_critical" {
|
|
default = 80
|
|
description = "loadbalancer 5xxcritical threshold in percentage"
|
|
}
|
|
|
|
variable "httpcode_elb_5xx_threshold_warning" {
|
|
default = 60
|
|
description = "loadbalancer 5xx warning threshold in percentage"
|
|
}
|
|
|
|
variable "httpcode_target_5xx_silenced" {
|
|
description = "Groups to mute for ALB target httpcode 5xx monitor"
|
|
type = "map"
|
|
default = {}
|
|
}
|
|
|
|
variable "httpcode_target_5xx_message" {
|
|
description = "Custom message for ALB target httpcode 5xx monitor"
|
|
type = "string"
|
|
default = ""
|
|
}
|
|
|
|
variable "httpcode_target_5xx_threshold_critical" {
|
|
default = 80
|
|
description = "target 5xx critical threshold in percentage"
|
|
}
|
|
|
|
variable "httpcode_target_5xx_threshold_warning" {
|
|
default = 60
|
|
description = "target 5xx warning threshold in percentage"
|
|
}
|
|
|
|
variable "artificial_requests_count" {
|
|
default = 5
|
|
description = "Number of false requests used to mitigate false positive in case of low trafic"
|
|
}
|