122 lines
3.2 KiB
HCL
122 lines
3.2 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 "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 = "*"
|
|
}
|
|
|
|
# PostgreSQL specific
|
|
##################################
|
|
### 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_silenced" {
|
|
description = "Groups to mute for PostgreSQL connection monitor"
|
|
type = "map"
|
|
default = {}
|
|
}
|
|
|
|
variable "postgresql_connection_enabled" {
|
|
description = "Flag to enable PostgreSQL connection monitor"
|
|
type = "string"
|
|
default = "true"
|
|
}
|
|
|
|
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 "posgresql_lock_silenced" {
|
|
description = "Groups to mute for PostgreSQL lock monitor"
|
|
type = "map"
|
|
default = {}
|
|
}
|
|
|
|
variable "postgresql_lock_enabled" {
|
|
description = "Flag to enable PostgreSQL lock monitor"
|
|
type = "string"
|
|
default = "true"
|
|
}
|
|
|
|
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"
|
|
}
|
|
|
|
|