177 lines
4.4 KiB
HCL
177 lines
4.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 "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 = ""
|
|
}
|
|
|
|
#
|
|
# TLS Cannot Connect
|
|
#
|
|
variable "cannot_connect_enabled" {
|
|
description = "Flag to enable TLS cannot connect monitor"
|
|
type = string
|
|
default = "true"
|
|
}
|
|
|
|
variable "cannot_connect_message" {
|
|
description = "Custom message for TLS cannot connect monitor"
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "cannot_connect_threshold_warning" {
|
|
description = "TLS cannot connect monitor (warning threshold)"
|
|
type = string
|
|
default = 3
|
|
}
|
|
|
|
variable "cannot_connect_no_data_timeframe" {
|
|
description = "TLS cannot connect monitor no data timeframe"
|
|
type = string
|
|
default = 10
|
|
}
|
|
|
|
variable "cannot_connect_extra_tags" {
|
|
description = "Extra tags for TLS cannot connect monitor"
|
|
type = list(string)
|
|
default = []
|
|
}
|
|
|
|
#
|
|
# TLS invalid certificate
|
|
#
|
|
variable "invalid_tls_certificate_enabled" {
|
|
description = "Flag to enable TLS certificate expiration monitor"
|
|
type = string
|
|
default = "true"
|
|
}
|
|
|
|
variable "invalid_tls_certificate_message" {
|
|
description = "Custom message for TLS certificate expiration monitor"
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "invalid_tls_certificate_threshold_warning" {
|
|
description = "TLS certificate expiration monitor (warning threshold)"
|
|
type = string
|
|
default = 3
|
|
}
|
|
|
|
variable "invalid_tls_certificate_extra_tags" {
|
|
description = "Extra tags for TLS certificate expiration monitor"
|
|
type = list(string)
|
|
default = []
|
|
}
|
|
|
|
#
|
|
# TLS Certificate Expiration
|
|
#
|
|
variable "tls_certificate_expiration_enabled" {
|
|
description = "Flag to enable TLS certificate expiration monitor"
|
|
type = string
|
|
default = "true"
|
|
}
|
|
|
|
variable "tls_certificate_expiration_message" {
|
|
description = "Custom message for TLS certificate expiration monitor"
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "tls_certificate_expiration_threshold_warning" {
|
|
description = "TLS certificate expiration monitor (warning threshold)"
|
|
type = string
|
|
default = 5
|
|
}
|
|
|
|
variable "tls_certificate_expiration_extra_tags" {
|
|
description = "Extra tags for TLS certificate expiration monitor"
|
|
type = list(string)
|
|
default = []
|
|
}
|
|
|
|
#
|
|
# Certificate Expiration Date
|
|
#
|
|
variable "certificate_expiration_date_enabled" {
|
|
description = "Flag to enable Certificate Expiration Date monitor"
|
|
type = string
|
|
default = "false"
|
|
}
|
|
|
|
variable "certificate_expiration_date_message" {
|
|
description = "Custom message for the Certificate Expiration Date monitor"
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "certificate_expiration_date_time_aggregator" {
|
|
description = "Time aggregator for the Certificate Expiration Date monitor"
|
|
type = string
|
|
default = "max"
|
|
}
|
|
|
|
variable "certificate_expiration_date_timeframe" {
|
|
description = "Timeframe for the Certificate Expiration Date monitor"
|
|
type = string
|
|
default = "last_5m"
|
|
}
|
|
|
|
variable "certificate_expiration_date_threshold_warning" {
|
|
description = "Container Memory Usage warning threshold"
|
|
type = string
|
|
default = 30
|
|
}
|
|
|
|
variable "certificate_expiration_date_threshold_critical" {
|
|
description = "Container Memory Usage critical threshold"
|
|
type = string
|
|
default = 15
|
|
}
|
|
|
|
variable "certificate_expiration_date_extra_tags" {
|
|
description = "Extra tags for Certificate Expiration Date monitor"
|
|
type = list(string)
|
|
default = []
|
|
} |