2019-07-11 18:45:51 +02:00

153 lines
3.8 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 "pod_phase_status_enabled" {
description = "Flag to enable Pod phase status monitor"
type = string
default = "true"
}
variable "pod_phase_status_extra_tags" {
description = "Extra tags for Pod phase status monitor"
type = list(string)
default = []
}
variable "pod_phase_status_message" {
description = "Custom message for Pod phase status monitor"
type = string
default = ""
}
variable "pod_phase_status_time_aggregator" {
description = "Monitor aggregator for Pod phase status [available values: min, max or avg]"
type = string
default = "max"
}
variable "pod_phase_status_timeframe" {
description = "Monitor timeframe for Pod phase 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"
}
variable "error_enabled" {
description = "Flag to enable Pod errors monitor"
type = string
default = "true"
}
variable "error_extra_tags" {
description = "Extra tags for Pod errors monitor"
type = list(string)
default = []
}
variable "error_message" {
description = "Custom message for Pod errors monitor"
type = string
default = ""
}
variable "error_time_aggregator" {
description = "Monitor aggregator for Pod errors [available values: min, max or avg]"
type = string
default = "sum"
}
variable "error_timeframe" {
description = "Monitor timeframe for Pod errors [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 "error_threshold_critical" {
default = 0.5
description = "error critical threshold"
}
variable "error_threshold_warning" {
default = 0
description = "error warning threshold"
}
variable "terminated_enabled" {
description = "Flag to enable Pod terminated monitor"
type = string
default = "true"
}
variable "terminated_extra_tags" {
description = "Extra tags for Pod terminated monitor"
type = list(string)
default = []
}
variable "terminated_message" {
description = "Custom message for Pod terminated monitor"
type = string
default = ""
}
variable "terminated_time_aggregator" {
description = "Monitor aggregator for Pod terminated [available values: min, max or avg]"
type = string
default = "sum"
}
variable "terminated_timeframe" {
description = "Monitor timeframe for Pod terminated [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 "terminated_threshold_critical" {
default = 0.5
description = "terminated critical threshold"
}
variable "terminated_threshold_warning" {
default = 0
description = "terminated warning threshold"
}