generated from kabisa/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherrors-slo-variables.tf
116 lines (94 loc) · 2.78 KB
/
errors-slo-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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
variable "error_slo_enabled" {
type = bool
default = true
}
variable "error_slo_note" {
type = string
default = ""
}
variable "error_slo_docs" {
type = string
default = ""
}
variable "error_slo_filter_override" {
type = string
default = ""
}
variable "error_slo_warning" {
type = number
default = null
}
variable "error_slo_critical" {
type = number
default = 99.9
}
variable "error_slo_alerting_enabled" {
type = bool
default = true
}
variable "error_slo_error_filter" {
type = string
description = "Filter string to select the non-errors for the SLO, Dont forget to include the comma or (AND or OR) keywords"
default = ",!status:error"
}
variable "error_slo_timeframe" {
validation {
condition = contains(["7d", "30d", "90d"], var.error_slo_timeframe)
error_message = "SLO Timeframe can be 7,30,90 days. Example: 7d."
}
type = string
default = "30d"
}
variable "error_slo_numerator_override" {
type = string
default = ""
}
variable "error_slo_denominator_override" {
type = string
default = ""
}
variable "error_slo_burn_rate_notification_channel_override" {
type = string
default = ""
}
variable "error_slo_burn_rate_enabled" {
type = bool
default = true
}
variable "error_slo_burn_rate_alerting_enabled" {
type = bool
default = true
}
variable "error_slo_burn_rate_priority" {
description = "Number from 1 (high) to 5 (low)."
type = number
default = 3
}
variable "error_slo_burn_rate_warning" {
type = number
default = null
}
variable "error_slo_burn_rate_critical" {
type = number
default = 10 # 10x burn rate
}
variable "error_slo_burn_rate_note" {
type = string
default = ""
}
variable "error_slo_burn_rate_docs" {
type = string
default = "Use burn rates alerts to measure how fast your error budget is being depleted relative to the time window of your SLO. For example, for a 30 day SLO if a burn rate of 1 is sustained, that means the error budget will be fully depleted in exactly 30 days, a burn rate of 2 means in exactly 15 days, etc. Therefore, you could use a burn rate alert to notify you if a burn rate of 10 is measured in the past hour. Burn rate alerts evaluate two time windows: a long window which you specify and a short window that is automatically calculated as 1/12 of your long window. The long window's purpose is to reduce alert flappiness, while the short window's purpose is to improve recovery time. If your threshold is violated in both windows, you will receive an alert."
}
variable "error_slo_burn_rate_evaluation_period" {
type = string
default = "30d"
}
variable "error_slo_burn_rate_short_window" {
type = string
default = "5m"
}
variable "error_slo_burn_rate_long_window" {
type = string
default = "1h"
}