98 lines
2.4 KiB
HCL
98 lines
2.4 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 = 15
|
|
}
|
|
|
|
variable "new_host_delay" {
|
|
description = "Delay in seconds before monitor new resource"
|
|
default = 300
|
|
}
|
|
|
|
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 = "*"
|
|
}
|
|
|
|
# Nginx Middleware specific
|
|
|
|
variable "nginx_connect_silenced" {
|
|
description = "Groups to mute for Nginx status monitor"
|
|
type = "map"
|
|
default = {}
|
|
}
|
|
|
|
variable "nginx_connect_enabled" {
|
|
description = "Flag to enable Nginx status monitor"
|
|
type = "string"
|
|
default = "true"
|
|
}
|
|
|
|
variable "nginx_connect_extra_tags" {
|
|
description = "Extra tags for Nginx process monitor"
|
|
type = "list"
|
|
default = []
|
|
}
|
|
|
|
variable "nginx_connect_message" {
|
|
description = "Custom message for Nginx status monitor"
|
|
type = "string"
|
|
default = ""
|
|
}
|
|
|
|
variable "nginx_connect_threshold_critical" {
|
|
description = "Nginx status monitor (critical threshold)"
|
|
type = "string"
|
|
default = "1.1754943508222875e-38"
|
|
}
|
|
|
|
variable "nginx_dropped_silenced" {
|
|
description = "Groups to mute for Nginx dropped connections monitor"
|
|
type = "map"
|
|
default = {}
|
|
}
|
|
|
|
variable "nginx_dropped_extra_tags" {
|
|
description = "Extra tags for Nginx dropped connections monitor"
|
|
type = "list"
|
|
default = []
|
|
}
|
|
|
|
variable "nginx_dropped_message" {
|
|
description = "Custom message for Nginx dropped connections monitor"
|
|
type = "string"
|
|
default = ""
|
|
}
|
|
|
|
variable "nginx_dropped_time_aggregator" {
|
|
description = "Monitor aggregator for Nginx dropped connections [available values: min, max or avg]"
|
|
type = "string"
|
|
default = "min"
|
|
}
|
|
|
|
variable "nginx_dropped_timeframe" {
|
|
description = "Monitor timeframe for Nginx dropped connections [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 "nginx_dropped_threshold_critical" {
|
|
description = "Nginx dropped connections critical threshold"
|
|
default = 0
|
|
}
|