2025-10-02 00:19:01 +02:00
|
|
|
variable "tag" {
|
|
|
|
|
description = "Prometheus image tag"
|
|
|
|
|
type = string
|
|
|
|
|
default = "latest"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "retention_time" {
|
|
|
|
|
description = "Prometheus data retention time"
|
|
|
|
|
type = string
|
|
|
|
|
default = "15d"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "rules" {
|
2025-10-04 18:05:10 +02:00
|
|
|
description = "Prometheus alerting rules in YAML format"
|
|
|
|
|
type = string
|
|
|
|
|
default = ""
|
2025-10-02 00:19:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "config" {
|
|
|
|
|
description = "Custom Prometheus configuration in YAML format"
|
|
|
|
|
type = string
|
|
|
|
|
default = ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "persistent_folder" {
|
|
|
|
|
description = "The path to the persistent folder"
|
|
|
|
|
type = string
|
|
|
|
|
}
|
2025-10-04 18:05:10 +02:00
|
|
|
|
|
|
|
|
variable "alertmanager_config" {
|
|
|
|
|
description = "Custom Alertmanager configuration in YAML format"
|
|
|
|
|
type = string
|
|
|
|
|
default = ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "cluster_name" {
|
|
|
|
|
description = "The name of the Kubernetes cluster"
|
|
|
|
|
type = string
|
|
|
|
|
default = "kubernetes"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "email_config" {
|
|
|
|
|
description = "Email configuration for Alertmanager in YAML format"
|
|
|
|
|
type = object({
|
|
|
|
|
to = optional(string, "root@localhost")
|
|
|
|
|
from = optional(string, "root@localhost")
|
|
|
|
|
smarthost = optional(string, "localhost:25")
|
|
|
|
|
auth_username = optional(string, "")
|
|
|
|
|
auth_password = optional(string, "")
|
|
|
|
|
})
|
|
|
|
|
default = {
|
|
|
|
|
to = "root@localhost"
|
|
|
|
|
from = "root@localhost"
|
|
|
|
|
smarthost = "localhost:25"
|
|
|
|
|
auth_username = ""
|
|
|
|
|
auth_password = ""
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "telegram_config" {
|
|
|
|
|
description = "Telegram configuration for Alertmanager in YAML format"
|
|
|
|
|
type = object({
|
|
|
|
|
bot_token = string
|
|
|
|
|
chat_id = string
|
|
|
|
|
parse_mode = optional(string, "HTML")
|
|
|
|
|
message = optional(string, "")
|
|
|
|
|
})
|
|
|
|
|
default = null
|
|
|
|
|
}
|