-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvariables.tf
More file actions
66 lines (57 loc) · 2.05 KB
/
Copy pathvariables.tf
File metadata and controls
66 lines (57 loc) · 2.05 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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)
alert_threshold_type = optional(string)
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))
for = optional(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 "default_exec_err_state" {
description = "Describes what state to enter when the rule's query is invalid and the rule cannot be executed. Options are `OK`, `Error`, `KeepLast`, and `Alerting`."
type = string
default = "Error"
}
variable "default_alert_threshold" {
description = "The default threshold for alerting rules."
type = number
default = 0
}
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
}
variable "alert_relative_time_range_from" {
description = "Relative time range (seconds) for alert evaluation window"
type = number
default = 600
}