Add Prometheus and Alertmanager configurations: implement custom rules, alerting, and Telegram notifications
This commit is contained in:
@@ -132,8 +132,18 @@ module "proxy" {
|
||||
module "prometheus" {
|
||||
source = "../../modules/utils/prometheus"
|
||||
|
||||
persistent_folder = "${local.persistent_folder}/monitoring"
|
||||
config = file("${path.module}/resources/prometheus.yml")
|
||||
cluster_name = "prod-01"
|
||||
persistent_folder = "${local.persistent_folder}/monitoring"
|
||||
config = file("${path.module}/resources/prometheus.yml")
|
||||
rules = local.prometheus_rules
|
||||
alertmanager_config = local.alertmanager_config
|
||||
|
||||
email_config = local.alertmanager_email_config
|
||||
telegram_config = {
|
||||
bot_token = var.telegram_bot_token
|
||||
chat_id = local.telegram_chat_id
|
||||
message = local.telegram_message
|
||||
}
|
||||
}
|
||||
|
||||
module "fail2ban_exporter" {
|
||||
|
||||
Reference in New Issue
Block a user