Add dashboard UID auto-generation and Gitea CI workflow
Some checks failed
terraform-dev / validate (push) Failing after 1m53s
terraform-dev / plan (push) Has been skipped
terraform-dev / apply (push) Has been skipped

This commit is contained in:
Alexandr
2026-03-25 06:41:19 +03:00
parent 345c5786b3
commit 558a23d916
83 changed files with 53372 additions and 1 deletions

View File

@ -0,0 +1,26 @@
resource "grafana_contact_point" "contact_points" {
for_each = { for cp in var.contact_points : "${cp.name}_${cp.type}" => cp }
org_id = var.org_id
name = each.value.name
disable_provenance = var.disable_provenance
dynamic "telegram" {
for_each = each.value.type == "telegram" ? [1] : []
content {
chat_id = each.value.settings["chat_id"]
token = each.value.settings["bot_token"]
message = local.contact_point_templates[each.value.name].template
parse_mode = "HTML"
}
}
dynamic "slack" {
for_each = each.value.type == "slack" ? [1] : []
content {
url = each.value.settings["webhook_url"]
title = try(local.contact_point_templates[each.value.name].title, null)
text = local.contact_point_templates[each.value.name].template
}
}
}