-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
46 lines (40 loc) · 1.39 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
variable "prometheus_alerts_file_path" {
description = "Path to the Prometheus Alerting rules file"
type = string
}
variable "folder_uid" {
description = "The UID of the Grafana folder that the alerts belongs to."
type = string
}
variable "datasource_uid" {
description = "The UID of the Grafana datasource being queried with the expressions inside the Alerting rule file"
type = string
}
variable "overrides" {
description = "Overrides per Alert rule"
type = map(object({
alert_threshold = optional(number)
exec_err_state = optional(string)
expr = optional(string)
is_paused = optional(bool)
no_data_state = optional(string)
labels = optional(map(string))
annotations = optional(map(string))
}))
default = {}
}
variable "default_evaluation_interval_duration" {
description = "How often is the rule evaluated by default. (When not defined inside your Alerting rules file)"
type = string
default = "5m"
}
variable "org_id" {
description = "The Organization ID of of the Grafana Alerting rule groups. (Only supported with basic auth, API keys are already org-scoped)"
type = string
default = null
}
variable "disable_provenance" {
description = "Allow modifying the rule group from other sources than Terraform or the Grafana API."
type = bool
default = false
}