38 lines
No EOL
1.1 KiB
HCL
38 lines
No EOL
1.1 KiB
HCL
variable "alerts_dir" {
|
|
type = string
|
|
default = "alerts"
|
|
description = "Relative path to the directory containing alert rule YAML files."
|
|
}
|
|
|
|
variable "file_pattern" {
|
|
type = string
|
|
default = "*.y{a,}ml"
|
|
description = "Glob pattern to match alert rule YAML files (e.g. *.yaml, *.yml)."
|
|
}
|
|
|
|
variable "default_datasource_uid" {
|
|
type = string
|
|
description = "UID of the Prometheus or Thanos datasource to use if not specified in the alert rule."
|
|
}
|
|
|
|
variable "default_receiver" {
|
|
type = string
|
|
description = "Name of the contact point (receiver) to use for notifications if not defined in alert rule."
|
|
}
|
|
|
|
variable "default_folder_uid" {
|
|
type = string
|
|
description = "UID of the Grafana folder to use for alert rules when not defined in the YAML."
|
|
}
|
|
|
|
variable "default_interval_seconds" {
|
|
type = number
|
|
default = 60
|
|
description = "Default evaluation interval (in seconds) for alert rule groups if not set in YAML."
|
|
}
|
|
|
|
variable "disable_provenance" {
|
|
type = bool
|
|
default = false
|
|
description = "If true, disables Grafana alert provisioning provenance (sets disable_provenance = true)."
|
|
} |