2018-10-03 17:50:12 +02:00

304 lines
8.2 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 "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
}
# 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_enabled" {
description = "Flag to enable ALB no healthy instances monitor"
type = "string"
default = "true"
}
variable "alb_no_healthy_instances_extra_tags" {
description = "Extra tags for ALB no healthy instances monitor"
type = "list"
default = []
}
variable "alb_no_healthy_instances_message" {
description = "Custom message for ALB no healthy instances monitor"
type = "string"
default = ""
}
variable "alb_no_healthy_instances_time_aggregator" {
description = "Monitor aggregator for ALB no healthy instances [available values: min, max or avg]"
type = "string"
default = "min"
}
variable "alb_no_healthy_instances_timeframe" {
description = "Monitor timeframe for ALB no healthy instances [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 "latency_silenced" {
description = "Groups to mute for ALB latency monitor"
type = "map"
default = {}
}
variable "latency_enabled" {
description = "Flag to enable ALB latency monitor"
type = "string"
default = "true"
}
variable "latency_extra_tags" {
description = "Extra tags for ALB latency monitor"
type = "list"
default = []
}
variable "latency_message" {
description = "Custom message for ALB latency monitor"
type = "string"
default = ""
}
variable "latency_time_aggregator" {
description = "Monitor aggregator for ALB latency [available values: min, max or avg]"
type = "string"
default = "min"
}
variable "latency_timeframe" {
description = "Monitor timeframe for ALB 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 "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_alb_4xx_silenced" {
description = "Groups to mute for ALB httpcode 4xx monitor"
type = "map"
default = {}
}
variable "httpcode_alb_4xx_enabled" {
description = "Flag to enable ALB httpcode 4xx monitor"
type = "string"
default = "true"
}
variable "httpcode_alb_4xx_extra_tags" {
description = "Extra tags for ALB httpcode 4xx monitor"
type = "list"
default = []
}
variable "httpcode_alb_4xx_message" {
description = "Custom message for ALB httpcode 4xx monitor"
type = "string"
default = ""
}
variable "httpcode_alb_4xx_time_aggregator" {
description = "Monitor aggregator for ALB httpcode 4xx [available values: min, max or avg]"
type = "string"
default = "min"
}
variable "httpcode_alb_4xx_timeframe" {
description = "Monitor timeframe for ALB httpcode 4xx [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 "httpcode_alb_4xx_threshold_critical" {
default = 80
description = "loadbalancer 4xx critical threshold in percentage"
}
variable "httpcode_alb_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_enabled" {
description = "Flag to enable ALB target httpcode 4xx monitor"
type = "string"
default = "true"
}
variable "httpcode_target_4xx_extra_tags" {
description = "Extra tags for ALB target httpcode 4xx monitor"
type = "list"
default = []
}
variable "httpcode_target_4xx_message" {
description = "Custom message for ALB target httpcode 4xx monitor"
type = "string"
default = ""
}
variable "httpcode_target_4xx_time_aggregator" {
description = "Monitor aggregator for ALB target httpcode 4xx [available values: min, max or avg]"
type = "string"
default = "min"
}
variable "httpcode_target_4xx_timeframe" {
description = "Monitor timeframe for ALB target httpcode 4xx [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 "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_alb_5xx_silenced" {
description = "Groups to mute for ALB httpcode 5xx monitor"
type = "map"
default = {}
}
variable "httpcode_alb_5xx_enabled" {
description = "Flag to enable ALB httpcode 5xx monitor"
type = "string"
default = "true"
}
variable "httpcode_alb_5xx_extra_tags" {
description = "Extra tags for ALB httpcode 5xx monitor"
type = "list"
default = []
}
variable "httpcode_alb_5xx_message" {
description = "Custom message for ALB httpcode 5xx monitor"
type = "string"
default = ""
}
variable "httpcode_alb_5xx_time_aggregator" {
description = "Monitor aggregator for ALB httpcode 5xx [available values: min, max or avg]"
type = "string"
default = "min"
}
variable "httpcode_alb_5xx_timeframe" {
description = "Monitor timeframe for ALB httpcode 5xx [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 "httpcode_alb_5xx_threshold_critical" {
default = 80
description = "loadbalancer 5xx critical threshold in percentage"
}
variable "httpcode_alb_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_enabled" {
description = "Flag to enable ALB target httpcode 5xx monitor"
type = "string"
default = "true"
}
variable "httpcode_target_5xx_extra_tags" {
description = "Extra tags for ALB target httpcode 5xx monitor"
type = "list"
default = []
}
variable "httpcode_target_5xx_message" {
description = "Custom message for ALB target httpcode 5xx monitor"
type = "string"
default = ""
}
variable "httpcode_target_5xx_time_aggregator" {
description = "Monitor aggregator for ALB target httpcode 5xx [available values: min, max or avg]"
type = "string"
default = "min"
}
variable "httpcode_target_5xx_timeframe" {
description = "Monitor timeframe for ALB target httpcode 5xx [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 "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"
}