2018-10-03 17:48:26 +02:00

164 lines
4.3 KiB
HCL

# Global Terraform
variable "environment" {
description = "Architecture environment"
type = "string"
}
# Global DataDog
variable "message" {
description = "Message sent when a serverfarms 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
}
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 serverfarms specific variables
# Status
variable "status_enabled" {
description = "Flag to enable the serverfarms status monitor"
type = "string"
default = "true"
}
variable "status_message" {
description = "Custom message for serverfarm status monitor"
type = "string"
default = ""
}
variable "status_silenced" {
type = "map"
description = "Groups to mute for serverfarm status monitor"
default = {}
}
variable "status_extra_tags" {
description = "Extra tags for serverfarms status monitor"
type = "list"
default = []
}
variable "status_time_aggregator" {
description = "Monitor aggregator for serverfarms status [available values: min, max or avg]"
type = "string"
default = "max"
}
variable "status_timeframe" {
description = "Monitor timeframe for serverfarms status [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]"
type = "string"
default = "last_5m"
}
# CPU percentage
variable "cpu_percentage_enabled" {
description = "Flag to enable the serverfarms cpu_percentage monitor"
type = "string"
default = "true"
}
variable "cpu_percentage_message" {
description = "Custom message for serverfarm cpu_percentage monitor"
type = "string"
default = ""
}
variable "cpu_percentage_silenced" {
type = "map"
description = "Groups to mute for serverfarm cpu_percentage monitor"
default = {}
}
variable "cpu_percentage_extra_tags" {
description = "Extra tags for serverfarms cpu_percentage monitor"
type = "list"
default = []
}
variable "cpu_percentage_time_aggregator" {
description = "Monitor aggregator for serverfarms cpu_percentage [available values: min, max or avg]"
type = "string"
default = "max"
}
variable "cpu_percentage_timeframe" {
description = "Monitor timeframe for serverfarms cpu_percentage [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]"
type = "string"
default = "last_10m"
}
variable "cpu_percentage_threshold_critical" {
description = "CPU percentage (critical threshold)"
default = 95
}
variable "cpu_percentage_threshold_warning" {
description = "CPU percentage (warning threshold)"
default = 90
}
# Memory percentage
variable "memory_percentage_enabled" {
description = "Flag to enable the serverfarms memory_percentage monitor"
type = "string"
default = "true"
}
variable "memory_percentage_message" {
description = "Custom message for serverfarm memory_percentage monitor"
type = "string"
default = ""
}
variable "memory_percentage_silenced" {
type = "map"
description = "Groups to mute for serverfarm memory_percentage monitor"
default = {}
}
variable "memory_percentage_extra_tags" {
description = "Extra tags for serverfarms memory_percentage monitor"
type = "list"
default = []
}
variable "memory_percentage_time_aggregator" {
description = "Monitor aggregator for serverfarms memory_percentage [available values: min, max or avg]"
type = "string"
default = "max"
}
variable "memory_percentage_timeframe" {
description = "Monitor timeframe for serverfarms memory_percentage [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 "memory_percentage_threshold_critical" {
description = "Memory percentage (critical threshold)"
default = 95
}
variable "memory_percentage_threshold_warning" {
description = "Memory percentage (warning threshold)"
default = 90
}