-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
117 lines (96 loc) · 2.62 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
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
117
###################
# Globals / Required Infos / Tags
###################
variable "cache_cluster_id" {
description = "Elasticache cluster ID"
}
variable "prefix" {
type = string
description = "(optional) Alarm Name Prefix"
default = ""
}
variable "suffix" {
type = string
description = "(optional) Alarm Name Suffix"
default = ""
}
variable "sns_topic_alarm_arns" {
type = list
default = []
description = "A list of SNS topics to call when alarms are triggered"
}
variable "sns_topic_ok_arns" {
type = list
default = []
description = "A list of SNS topics to call when alarms are cleared"
}
variable "tags" {
type = map(string)
default = {}
description = "Tags to attach to each alarm"
}
variable "dimensions" {
type = map(string)
default = {}
description = "The extra dimensions to apply for the alarms"
}
###################
# CPUUtilization
###################
variable "cpu_percent_threshold" {
description = "Threshold for cpu alarm in %"
type = number
default = 90 # Percent
}
###################
# SwapUsage
###################
variable "swap_threshold" {
description = "Threshold for swap alarm"
type = number
default = 52428800 # 50MB in bytes
}
###################
# Evictions
###################
variable "evictions_threshold" {
description = "Threshold for evictions alarm"
type = number
default = 0
}
###################
# FreeableMemory
###################
variable "freeable_memory_minimum" {
description = "Low threshold for freeable memory alarm, 0 disables this alarm"
type = number
default = 209715200 # 200MB in bytes
}
###################
# CurrConnections
###################
variable "monitor_connection_anomalies" {
description = "Enable monitoring of connection count anomalies. Can be noisy depending on config/setup"
type = bool
default = true
}
variable "anomaly_period" {
type = number
default = 600
description = "The number of seconds that make each evaluation period for anomaly detection."
}
variable "anomaly_evaluation_periods" {
type = number
default = 3
description = "The amount of periods over which to use when triggering alarms."
}
variable "anomaly_band_width" {
type = number
default = 2
description = "The width of the anomaly band, default 2. Higher numbers means less sensitive."
}
variable "monitor_connection_maximum" {
description = "Disabled by default, if you wish to alarm on maximum connections then set this to > 0"
type = number
default = 0
}