Patrick de Ruiter 553f03285a
Some checks failed
Monitors / pre_job (push) Successful in 14s
Monitors / check (push) Failing after 1m30s
Initial commit with README and module files
2025-11-01 10:43:48 +01:00

240 lines
6.5 KiB
HCL
Executable File

# Global Terraform
variable "environment" {
description = "Architecture environment"
type = string
}
# Global DataDog
variable "evaluation_delay" {
description = "Delay in seconds for the metric evaluation"
default = 900
}
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 = ""
}
variable "notify_no_data" {
description = "Will raise no data alert if set to true"
default = true
}
variable "postgresql_no_connection_no_data_timeframe" {
description = "Number of minutes before reporting no data"
type = string
default = 10
}
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 = "*"
}
# Azure Databases for PostgreSQL Servers specific variables
variable "cpu_usage_enabled" {
description = "Flag to enable PostgreSQL status monitor"
type = string
default = "true"
}
variable "cpu_usage_extra_tags" {
description = "Extra tags for PostgreSQL status monitor"
type = list(string)
default = []
}
variable "cpu_usage_message" {
description = "Custom message for PostgreSQL CPU monitor"
type = string
default = ""
}
variable "cpu_usage_time_aggregator" {
description = "Monitor aggregator for PostgreSQL CPU [available values: min, max or avg]"
type = string
default = "min"
}
variable "cpu_usage_timeframe" {
description = "Monitor timeframe for PostgreSQL CPU [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 "cpu_usage_threshold_warning" {
description = "PostgreSQL CPU usage in percent (warning threshold)"
default = "80"
}
variable "cpu_usage_threshold_critical" {
description = "PostgreSQL CPU usage in percent (critical threshold)"
default = "90"
}
variable "no_connection_enabled" {
description = "Flag to enable PostgreSQL status monitor"
type = string
default = "true"
}
variable "no_connection_extra_tags" {
description = "Extra tags for PostgreSQL status monitor"
type = list(string)
default = []
}
variable "no_connection_message" {
description = "Custom message for PostgreSQL no connection monitor"
type = string
default = ""
}
variable "no_connection_time_aggregator" {
description = "Monitor aggregator for PostgreSQL no connection [available values: min, max or avg]"
type = string
default = "min"
}
variable "no_connection_timeframe" {
description = "Monitor timeframe for PostgreSQL no connection [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 "free_storage_enabled" {
description = "Flag to enable PostgreSQL status monitor"
type = string
default = "true"
}
variable "free_storage_extra_tags" {
description = "Extra tags for PostgreSQL status monitor"
type = list(string)
default = []
}
variable "free_storage_message" {
description = "Custom message for PostgreSQL Free Storage monitor"
type = string
default = ""
}
variable "free_storage_time_aggregator" {
description = "Monitor aggregator for PostgreSQL Free Storage [available values: min, max or avg]"
type = string
default = "min"
}
variable "free_storage_timeframe" {
description = "Monitor timeframe for PostgreSQL Free Storage [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 "free_storage_threshold_warning" {
description = "PostgreSQL Free Storage remaining in percent (warning threshold)"
default = "20"
}
variable "free_storage_threshold_critical" {
description = "PostgreSQL Free Storage remaining in percent (critical threshold)"
default = "10"
}
variable "io_consumption_enabled" {
description = "Flag to enable PostgreSQL status monitor"
type = string
default = "true"
}
variable "io_consumption_extra_tags" {
description = "Extra tags for PostgreSQL status monitor"
type = list(string)
default = []
}
variable "io_consumption_message" {
description = "Custom message for PostgreSQL IO consumption monitor"
type = string
default = ""
}
variable "io_consumption_time_aggregator" {
description = "Monitor aggregator for PostgreSQL IO consumption [available values: min, max or avg]"
type = string
default = "min"
}
variable "io_consumption_timeframe" {
description = "Monitor timeframe for PostgreSQL IO consumption [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 "io_consumption_threshold_warning" {
description = "PostgreSQL IO consumption in percent (warning threshold)"
default = "80"
}
variable "io_consumption_threshold_critical" {
description = "PostgreSQL IO consumption in percent (critical threshold)"
default = "90"
}
variable "memory_usage_enabled" {
description = "Flag to enable PostgreSQL status monitor"
type = string
default = "true"
}
variable "memory_usage_extra_tags" {
description = "Extra tags for PostgreSQL status monitor"
type = list(string)
default = []
}
variable "memory_usage_message" {
description = "Custom message for PostgreSQL memory monitor"
type = string
default = ""
}
variable "memory_usage_time_aggregator" {
description = "Monitor aggregator for PostgreSQL memory [available values: min, max or avg]"
type = string
default = "min"
}
variable "memory_usage_timeframe" {
description = "Monitor timeframe for PostgreSQL memory [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 "memory_usage_threshold_warning" {
description = "PostgreSQL memory usage in percent (warning threshold)"
default = "80"
}
variable "memory_usage_threshold_critical" {
description = "PostgreSQL memory usage in percent (critical threshold)"
default = "90"
}