terraform-modules/grafana/notification-policy/variables.tf

31 lines
813 B
HCL

variable "group_by" {
description = "Labels to group alerts by before routing. Grafana default is [\"alertname\"]."
type = list(string)
default = ["alertname"]
}
variable "default_contact_point_uid" {
description = "Fallback contact-point UID for alerts that match no folder-specific policy."
type = string
}
variable "folder_policies" {
description = <<-EOT
Map of folder UID contact-point UID.
Each entry creates a matcher block:
policy {
matcher { label = "folder"; match = <folder_uid> }
contact_point = <contact_point_uid>
}
EOT
type = map(string)
}
variable "folder_label_key" {
description = "Label key used to match alert folders (e.g., 'folder' or 'namespace_uid')"
type = string
default = "folder"
}