163 lines
4.4 KiB
HCL
163 lines
4.4 KiB
HCL
variable "environment" {
|
|
description = "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 for the metric evaluation"
|
|
default = 300
|
|
}
|
|
|
|
variable "prefix_slug" {
|
|
description = "Prefix string to prepend between brackets on every monitors names"
|
|
default = ""
|
|
}
|
|
|
|
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 = ""
|
|
}
|
|
|
|
# PostgreSQL specific
|
|
##################################
|
|
### PostgreSQL availability ###
|
|
##################################
|
|
|
|
variable "postgresql_availability_enabled" {
|
|
description = "Flag to enable PostgreSQL availability monitor"
|
|
type = "string"
|
|
default = "true"
|
|
}
|
|
|
|
variable "postgresql_availability_extra_tags" {
|
|
description = "Extra tags for PostgreSQL availability monitor"
|
|
type = "list"
|
|
default = []
|
|
}
|
|
|
|
variable "postgresql_availability_message" {
|
|
description = "Custom message for PostgreSQL availability monitor"
|
|
type = "string"
|
|
default = ""
|
|
}
|
|
|
|
variable "postgresql_availability_threshold_warning" {
|
|
description = "PostgreSQL availability monitor (warning threshold)"
|
|
type = "string"
|
|
default = 3
|
|
}
|
|
|
|
variable "postgresql_availability_no_data_timeframe" {
|
|
description = "PostgreSQL availability monitor no data timeframe"
|
|
type = "string"
|
|
default = 10
|
|
}
|
|
|
|
##################################
|
|
### PostgreSQL connections ###
|
|
##################################
|
|
|
|
variable "postgresql_connection_threshold_critical" {
|
|
default = 80
|
|
description = "Maximum critical acceptable percent of connections"
|
|
}
|
|
|
|
variable "postgresql_connection_threshold_warning" {
|
|
default = 70
|
|
description = "Maximum warning acceptable percent of connections"
|
|
}
|
|
|
|
variable "postgresql_connection_enabled" {
|
|
description = "Flag to enable PostgreSQL connection monitor"
|
|
type = "string"
|
|
default = "true"
|
|
}
|
|
|
|
variable "postgresql_connection_extra_tags" {
|
|
description = "Extra tags for PostgreSQL connection connects monitor"
|
|
type = "list"
|
|
default = []
|
|
}
|
|
|
|
variable "postgresql_connection_message" {
|
|
description = "Custom message for PostgreSQL connection monitor"
|
|
type = "string"
|
|
default = ""
|
|
}
|
|
|
|
variable "postgresql_connection_time_aggregator" {
|
|
description = "Monitor time aggregator for PostgreSQL connection monitor [available values: min, max or avg]"
|
|
type = "string"
|
|
default = "avg"
|
|
}
|
|
|
|
variable "postgresql_connection_timeframe" {
|
|
description = "Monitor timeframe for PostgreSQL connection monitor [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]"
|
|
type = "string"
|
|
default = "last_15m"
|
|
}
|
|
|
|
############################
|
|
### PostgreSQL locks ###
|
|
############################
|
|
|
|
variable "postgresql_lock_threshold_critical" {
|
|
default = 99
|
|
description = "Maximum critical acceptable number of locks"
|
|
}
|
|
|
|
variable "postgresql_lock_threshold_warning" {
|
|
default = 70
|
|
description = "Maximum warning acceptable number of locks"
|
|
}
|
|
|
|
variable "postgresql_lock_enabled" {
|
|
description = "Flag to enable PostgreSQL lock monitor"
|
|
type = "string"
|
|
default = "true"
|
|
}
|
|
|
|
variable "postgresql_lock_extra_tags" {
|
|
description = "Extra tags for PostgreSQL lock connects monitor"
|
|
type = "list"
|
|
default = []
|
|
}
|
|
|
|
variable "postgresql_lock_message" {
|
|
description = "Custom message for PostgreSQL lock monitor"
|
|
type = "string"
|
|
default = ""
|
|
}
|
|
|
|
variable "postgresql_lock_time_aggregator" {
|
|
description = "Monitor time aggregator for PostgreSQL lock monitor [available values: min, max or avg]"
|
|
type = "string"
|
|
default = "min"
|
|
}
|
|
|
|
variable "postgresql_lock_timeframe" {
|
|
description = "Monitor timeframe for PostgreSQL lock monitor [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]"
|
|
type = "string"
|
|
default = "last_5m"
|
|
}
|