2019-04-05 10:36:12 +02:00

258 lines
6.9 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 "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 = "*"
}
# Azure Databases for MySQL Servers specific variables
variable "cpu_usage_silenced" {
description = "Groups to mute for Mysql CPU monitor"
type = "map"
default = {}
}
variable "cpu_usage_enabled" {
description = "Flag to enable Mysql status monitor"
type = "string"
default = "true"
}
variable "cpu_usage_extra_tags" {
description = "Extra tags for Mysql status monitor"
type = "list"
default = []
}
variable "cpu_usage_message" {
description = "Custom message for Mysql CPU monitor"
type = "string"
default = ""
}
variable "cpu_usage_time_aggregator" {
description = "Monitor aggregator for Mysql CPU [available values: min, max or avg]"
type = "string"
default = "min"
}
variable "cpu_usage_timeframe" {
description = "Monitor timeframe for Mysql CPU [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]"
type = "string"
default = "last_15m"
}
variable "cpu_usage_threshold_warning" {
description = "Mysql CPU usage in percent (warning threshold)"
default = "80"
}
variable "cpu_usage_threshold_critical" {
description = "Mysql CPU usage in percent (critical threshold)"
default = "90"
}
variable "total_connection_silenced" {
description = "Groups to mute for Mysql total connection monitor"
type = "map"
default = {}
}
variable "total_connection_enabled" {
description = "Flag to enable Mysql status monitor"
type = "string"
default = "true"
}
variable "total_connection_extra_tags" {
description = "Extra tags for Mysql status monitor"
type = "list"
default = []
}
variable "total_connection_message" {
description = "Custom message for Mysql total connection monitor"
type = "string"
default = ""
}
variable "total_connection_time_aggregator" {
description = "Monitor aggregator for Mysql total connection [available values: min, max or avg]"
type = "string"
default = "min"
}
variable "total_connection_timeframe" {
description = "Monitor timeframe for Mysql total connection [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 "total_connection_limit" {
description = "Limit for Mysql total connection [See details : https://docs.microsoft.com/en-us/azure/mysql/concepts-limits]"
type = "string"
default = ""
}
variable "free_storage_silenced" {
description = "Groups to mute for Mysql Free Storage monitor"
type = "map"
default = {}
}
variable "free_storage_enabled" {
description = "Flag to enable Mysql status monitor"
type = "string"
default = "true"
}
variable "free_storage_extra_tags" {
description = "Extra tags for Mysql status monitor"
type = "list"
default = []
}
variable "free_storage_message" {
description = "Custom message for Mysql Free Storage monitor"
type = "string"
default = ""
}
variable "free_storage_time_aggregator" {
description = "Monitor aggregator for Mysql Free Storage [available values: min, max or avg]"
type = "string"
default = "min"
}
variable "free_storage_timeframe" {
description = "Monitor timeframe for Mysql Free Storage [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]"
type = "string"
default = "last_15m"
}
variable "free_storage_threshold_warning" {
description = "Mysql Free Storage remaining in percent (warning threshold)"
default = "20"
}
variable "free_storage_threshold_critical" {
description = "Mysql Free Storage remaining in percent (critical threshold)"
default = "10"
}
variable "io_consumption_silenced" {
description = "Groups to mute for Mysql IO consumption monitor"
type = "map"
default = {}
}
variable "io_consumption_enabled" {
description = "Flag to enable Mysql status monitor"
type = "string"
default = "true"
}
variable "io_consumption_extra_tags" {
description = "Extra tags for Mysql status monitor"
type = "list"
default = []
}
variable "io_consumption_message" {
description = "Custom message for Mysql IO consumption monitor"
type = "string"
default = ""
}
variable "io_consumption_time_aggregator" {
description = "Monitor aggregator for Mysql IO consumption [available values: min, max or avg]"
type = "string"
default = "min"
}
variable "io_consumption_timeframe" {
description = "Monitor timeframe for Mysql IO consumption [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]"
type = "string"
default = "last_15m"
}
variable "io_consumption_threshold_warning" {
description = "Mysql IO consumption in percent (warning threshold)"
default = "80"
}
variable "io_consumption_threshold_critical" {
description = "Mysql IO consumption in percent (critical threshold)"
default = "90"
}
variable "memory_usage_silenced" {
description = "Groups to mute for Mysql memory monitor"
type = "map"
default = {}
}
variable "memory_usage_enabled" {
description = "Flag to enable Mysql status monitor"
type = "string"
default = "true"
}
variable "memory_usage_extra_tags" {
description = "Extra tags for Mysql status monitor"
type = "list"
default = []
}
variable "memory_usage_message" {
description = "Custom message for Mysql memory monitor"
type = "string"
default = ""
}
variable "memory_usage_time_aggregator" {
description = "Monitor aggregator for Mysql memory [available values: min, max or avg]"
type = "string"
default = "min"
}
variable "memory_usage_timeframe" {
description = "Monitor timeframe for Mysql memory [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]"
type = "string"
default = "last_15m"
}
variable "memory_usage_threshold_warning" {
description = "Mysql memory usage in percent (warning threshold)"
default = "80"
}
variable "memory_usage_threshold_critical" {
description = "Mysql memory usage in percent (critical threshold)"
default = "90"
}