feat: grafana IRM escalation module
новый модуль modules/grafana_irm_escalation, dev/adibrov подключён. секреты (oncall_access_token, user id) хранятся в Vault, в git не попадают
This commit is contained in:
@ -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 = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user