2018-09-18 13:37:47 +02:00

78 lines
1.9 KiB
HCL

variable "environment" {
description = "Environment"
type = "string"
}
# Global DataDog
variable "delay" {
description = "Delay in seconds for the metric evaluation"
default = 15
}
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 PostgreSQL connection monitor"
type = "map"
default = {}
}
variable "postgresql_connection_message" {
description = "Custom message for PostgreSQL connection monitor"
type = "string"
default = ""
}
############################
### 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 PostgreSQL lock monitor"
type = "map"
default = {}
}
variable "postgresql_lock_message" {
description = "Custom message for PostgreSQL lock monitor"
type = "string"
default = ""
}