331 lines
8.3 KiB
HCL

# Datadog global variables
variable "environment" {
description = "Architecture environment"
}
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 = ""
}
variable "message" {
description = "Message sent when a monitor is triggered"
}
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 = ""
}
# Datadog monitors variables
variable "disk_pressure_enabled" {
description = "Flag to enable Disk pressure monitor"
type = "string"
default = "true"
}
variable "disk_pressure_extra_tags" {
description = "Extra tags for Disk pressure monitor"
type = "list"
default = []
}
variable "disk_pressure_message" {
description = "Custom message for Disk pressure monitor"
type = "string"
default = ""
}
variable "disk_pressure_threshold_warning" {
description = "Disk pressure monitor (warning threshold)"
type = "string"
default = 3
}
variable "disk_out_enabled" {
description = "Flag to enable Out of disk monitor"
type = "string"
default = "true"
}
variable "disk_out_extra_tags" {
description = "Extra tags for Out of disk monitor"
type = "list"
default = []
}
variable "disk_out_message" {
description = "Custom message for Out of disk monitor"
type = "string"
default = ""
}
variable "disk_out_threshold_warning" {
description = "Out of disk monitor (warning threshold)"
type = "string"
default = 3
}
variable "memory_pressure_enabled" {
description = "Flag to enable Memory pressure monitor"
type = "string"
default = "true"
}
variable "memory_pressure_extra_tags" {
description = "Extra tags for Memory pressure monitor"
type = "list"
default = []
}
variable "memory_pressure_message" {
description = "Custom message for Memory pressure monitor"
type = "string"
default = ""
}
variable "memory_pressure_threshold_warning" {
description = "Memory pressure monitor (warning threshold)"
type = "string"
default = 3
}
variable "ready_enabled" {
description = "Flag to enable Node ready monitor"
type = "string"
default = "true"
}
variable "ready_extra_tags" {
description = "Extra tags for Node ready monitor"
type = "list"
default = []
}
variable "ready_message" {
description = "Custom message for Node ready monitor"
type = "string"
default = ""
}
variable "ready_threshold_warning" {
description = "Node ready monitor (warning threshold)"
type = "string"
default = 3
}
variable "kubelet_ping_enabled" {
description = "Flag to enable Kubelet ping monitor"
type = "string"
default = "true"
}
variable "kubelet_ping_extra_tags" {
description = "Extra tags for Kubelet ping monitor"
type = "list"
default = []
}
variable "kubelet_ping_message" {
description = "Custom message for Kubelet ping monitor"
type = "string"
default = ""
}
variable "kubelet_ping_threshold_warning" {
description = "Kubelet ping monitor (warning threshold)"
type = "string"
default = 3
}
variable "kubelet_syncloop_enabled" {
description = "Flag to enable Kubelet sync loop monitor"
type = "string"
default = "true"
}
variable "kubelet_syncloop_extra_tags" {
description = "Extra tags for Kubelet sync loop monitor"
type = "list"
default = []
}
variable "kubelet_syncloop_message" {
description = "Custom message for Kubelet sync loop monitor"
type = "string"
default = ""
}
variable "kubelet_syncloop_threshold_warning" {
description = "Kubelet sync loop monitor (warning threshold)"
type = "string"
default = 3
}
variable "unregister_net_device_enabled" {
description = "Flag to enable Unregister net device monitor"
type = "string"
default = "true"
}
variable "unregister_net_device_extra_tags" {
description = "Extra tags for Unregister net device monitor"
type = "list"
default = []
}
variable "unregister_net_device_message" {
description = "Custom message for Unregister net device monitor"
type = "string"
default = ""
}
variable "unregister_net_device_time_aggregator" {
description = "Monitor aggregator for Unregister net device [available values: min, max or avg]"
type = "string"
default = "min"
}
variable "unregister_net_device_timeframe" {
description = "Monitor timeframe for Unregister net device [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]"
type = "string"
default = "15m"
}
variable "unregister_net_device_threshold_critical" {
default = 3
description = "Unregister net device critical threshold"
}
variable "node_unschedulable_enabled" {
description = "Flag to enable node unschedulable monitor"
type = "string"
default = "true"
}
variable "node_unschedulable_extra_tags" {
description = "Extra tags for node unschedulable monitor"
type = "list"
default = []
}
variable "node_unschedulable_message" {
description = "Custom message for node unschedulable monitor"
type = "string"
default = ""
}
variable "node_unschedulable_time_aggregator" {
description = "Monitor aggregator for node unschedulable [available values: min, max or avg]"
type = "string"
default = "min"
}
variable "node_unschedulable_timeframe" {
description = "Monitor timeframe for node unschedulable [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]"
type = "string"
default = "last_1h"
}
variable "volume_space_enabled" {
description = "Flag to enable Volume space monitor"
type = "string"
default = "true"
}
variable "volume_space_extra_tags" {
description = "Extra tags for Volume space monitor"
type = "list"
default = []
}
variable "volume_space_message" {
description = "Custom message for Volume space monitor"
type = "string"
default = ""
}
variable "volume_space_time_aggregator" {
description = "Monitor aggregator for Volume space [available values: min, max or avg]"
type = "string"
default = "min"
}
variable "volume_space_timeframe" {
description = "Monitor timeframe for Volume space [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 "volume_space_threshold_critical" {
default = 95
description = "Volume space critical threshold"
}
variable "volume_space_threshold_warning" {
default = 90
description = "Volume space warning threshold"
}
variable "volume_inodes_enabled" {
description = "Flag to enable Volume inodes monitor"
type = "string"
default = "true"
}
variable "volume_inodes_extra_tags" {
description = "Extra tags for Volume inodes monitor"
type = "list"
default = []
}
variable "volume_inodes_message" {
description = "Custom message for Volume inodes monitor"
type = "string"
default = ""
}
variable "volume_inodes_time_aggregator" {
description = "Monitor aggregator for Volume inodes [available values: min, max or avg]"
type = "string"
default = "min"
}
variable "volume_inodes_timeframe" {
description = "Monitor timeframe for Volume inodes [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 "volume_inodes_threshold_critical" {
default = 95
description = "Volume inodes critical threshold"
}
variable "volume_inodes_threshold_warning" {
default = 90
description = "Volume inodes warning threshold"
}