forked from notablehealth/terraform-google-monitoring
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
222 lines (216 loc) · 6.35 KB
/
variables.tf
File metadata and controls
222 lines (216 loc) · 6.35 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
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
variable "dashboard_sources_path" {
description = "Path to process dashboard source files"
type = string
default = ""
}
variable "dashboard_sources_pattern" {
description = "Dashboard json files pattern"
type = string
default = "**"
}
variable "gcp_project" {
description = "GCP project to put monitoring in"
type = string
}
###==========================
### Enable module variables
###==========================
variable "enable_alert_policies" {
description = "Enable managing Alert Polices"
type = bool
default = false
}
variable "enable_dashboards" {
description = "Enable managing Dashboards"
type = bool
default = false
}
variable "enable_groups" {
description = "Enable managing Groups"
type = bool
default = false
}
variable "enable_log_metrics" {
description = "Enable managing Log Metrics"
type = bool
default = false
}
variable "enable_logging" {
description = "Enable managing central Logging"
type = bool
default = false
}
variable "enable_metric_descriptors" {
description = "Enable managing Metric Descriptors"
type = bool
default = false
}
variable "enable_notification_channels" {
description = "Enable managing Notification Channels"
type = bool
default = false
}
variable "enable_project_scope" {
description = "Enable managing Project metric scopes"
type = bool
default = false
}
variable "enable_services" {
description = "Enable managing Services"
type = bool
default = false
}
variable "enable_slo" {
description = "Enable managing SLOs"
type = bool
default = false
}
variable "enable_uptime_checks" {
description = "Enable managing Uptime Checks"
type = bool
default = false
}
###==========================
### Module data structures
###==========================
#variable "alert_policies" {
# description = "Alert policy configuration objects"
# type = list(object({
# alert_strategy = optional(object({
# notification_rate_limit = optional(object({
# period = optional(number)
# }))
# auto_close = optional(string)
# }))
# combiner = string
# conditions = list(object({
# condition_absent = optional(object({
# aggregations = list(object({
# alignment_period = optional(string)
# cross_series_reducer = optional(string) # validate
# group_by_fields = optional(string) # ??
# per_series_aligner = optional(string) # validate
# }))
# duration = string # Valid: minutes in seconds: must be /60
# filter = optional(string)
# trigger = optional(object({
# count = optional(number)
# percent = optional(number)
# }))
# }))
# condition_matched_log = optional(object({
# filter = optional(string)
# label_extractors = optional(map(string))
# }))
# condition_monitoring_query_language = optional(object({
# duration = string
# evaluation_missing_data = optional(string) # validate
# query = string
# trigger = optional(object({
# count = optional(number)
# percent = optional(number)
# }))
# }))
# condition_threshold = optional(object({
# aggregations = optional(list(object({
# alignment_period = optional(string) # validate
# cross_series_reducer = optional(string) # validate
# group_by_fields = optional(list(string)) # ??
# per_series_aligner = optional(string) # validate
# })))
# comparison = string # validate [COMPARISON_GT COMPARISON_GE COMPARISON_LT COMPARISON_LE COMPARISON_EQ COMPARISON_NE]
# denominator_aggregations = optional(object({
# alignment_period = optional(string)
# cross_series_reducer = optional(string) # validate
# group_by_fields = optional(string) # ??
# per_series_aligner = optional(string) # validate
# }))
# denominator_filter = optional(string)
# duration = string
# evaluation_missing_data = optional(string) # validate
# filter = optional(string)
# threshold_value = optional(number)
# trigger = optional(object({
# count = optional(number)
# percent = optional(number)
# }))
# }))
# display_name = string
# }))
# display_name = string
# documentation = object({
# content = string
# mime_type = optional(string, "text/markdown")
# })
# enabled = optional(bool, true)
# notification_channels = optional(list(string), [])
# user_labels = optional(map(string))
# }))
# # Minimum required fields
# default = [{
# combiner = ""
# conditions = [{
# display_name = ""
# }]
# display_name = ""
# documentation = {
# content = ""
# }
# }]
#}
#variable "custom_services" {
# description = "Custom Service configuration objects"
# type = list(object({}))
# default = []
#}
#variable "groups" {
# description = "Group configuration objects"
# type = list(object({}))
# default = []
#}
variable "logging_bucket" {
description = "Logging Bucket name"
type = string
default = ""
}
#variable "logging_metrics" {
# description = "Logging Metric configuration objects"
# type = list(object({}))
# default = []
#}
#ariable "metric_descriptors" {
# description = "Metric Descriptor configuration objects"
# type = list(object({}))
# default = []
#
#ariable "notification_channels" {
# description = "Notification Channel configuration objects"
# type = list(object({}))
# default = []
#
#ariable "services" {
# description = "Service configuration objects"
# type = list(object({}))
# default = []
#
#ariable "slos" {
# description = "SLO configuration objects"
# type = list(object({}))
# default = []
#
#
#ariable "uptime_checks" {
# description = "Uptime Check configuration objects"
# type = list(object({}))
# default = []
#
variable "organization_name" {
description = "Organization name"
type = string
default = ""
}
variable "organization_sink" {
description = "Organization Sink name"
type = string
default = ""
}