feat: grafana IRM escalation module
All checks were successful
terraform-dev / validate (push) Successful in 7s
terraform-dev / plan (push) Successful in 7s
terraform-dev / apply (push) Has been skipped

новый модуль modules/grafana_irm_escalation, dev/adibrov подключён.
секреты (oncall_access_token, user id) хранятся в Vault, в git не попадают
This commit is contained in:
Alexandr
2026-04-01 08:21:03 +03:00
parent a9e7ad4831
commit 5d05640e80
9 changed files with 161 additions and 0 deletions

View File

@ -5,6 +5,32 @@ locals {
"X-Disable-Provenance" = var.disable_provenance ? "true" : "false"
}
# IRM escalation chains
# ID пользователей/расписаний хранятся в Vault: app/groups/monitoring/grafana/dev/ext
irm_escalation_chains = [
{
name = "infra-default"
steps = [
{
type = "notify_persons"
persons_to_notify = [data.vault_kv_secret_v2.secret_ext.data["irm_user_adibrov"]]
},
{
type = "wait"
duration_seconds = 300
},
{
type = "notify_persons"
persons_to_notify = [data.vault_kv_secret_v2.secret_ext.data["irm_user_adibrov"]]
important = true
},
{
type = "repeat_escalation"
}
]
}
]
# Contact points configuration
contact_points = [
{