@@ -58,11 +58,17 @@ variable "irsa_iam_additional_policies" {
58
58
}
59
59
60
60
variable "adot_loglevel" {
61
- description = " Verbosity level for ADOT collector logs. This accepts (detailed|normal|basic), see https://aws-otel.github.io/docs/components/misc-exporters for mor infos ."
61
+ description = " Verbosity level for ADOT collector logs. This accepts (detailed|normal|basic), see https://aws-otel.github.io/docs/components/misc-exporters for more info ."
62
62
type = string
63
63
default = " normal"
64
64
}
65
65
66
+ variable "adot_service_telemetry_loglevel" {
67
+ description = " Verbosity level for ADOT service telemetry logs. See https://opentelemetry.io/docs/collector/configuration/#telemetry for more info."
68
+ type = string
69
+ default = " INFO"
70
+ }
71
+
66
72
variable "managed_prometheus_workspace_endpoint" {
67
73
description = " Amazon Managed Prometheus Workspace Endpoint"
68
74
type = string
@@ -144,32 +150,20 @@ variable "enable_kube_state_metrics" {
144
150
variable "ksm_config" {
145
151
description = " Kube State metrics configuration"
146
152
type = object ({
147
- create_namespace = bool
148
- k8s_namespace = string
149
- helm_chart_name = string
150
- helm_chart_version = string
151
- helm_release_name = string
152
- helm_repo_url = string
153
- helm_settings = map (string )
154
- helm_values = map (any )
155
-
156
- scrape_interval = string
157
- scrape_timeout = string
153
+ create_namespace = optional ( bool , true )
154
+ k8s_namespace = optional ( string , " kube-system " )
155
+ helm_chart_name = optional ( string , " kube-state-metrics " )
156
+ helm_chart_version = optional ( string , " 5.15.2 " )
157
+ helm_release_name = optional ( string , " kube-state-metrics " )
158
+ helm_repo_url = optional ( string , " https://prometheus-community.github.io/helm-charts " )
159
+ helm_settings = optional ( map (string ), {} )
160
+ helm_values = optional ( map (any ), {} )
161
+
162
+ scrape_interval = optional ( string , " 60s " )
163
+ scrape_timeout = optional ( string , " 15s " )
158
164
})
159
165
160
- default = {
161
- create_namespace = true
162
- helm_chart_name = " kube-state-metrics"
163
- helm_chart_version = " 5.15.2"
164
- helm_release_name = " kube-state-metrics"
165
- helm_repo_url = " https://prometheus-community.github.io/helm-charts"
166
- helm_settings = {}
167
- helm_values = {}
168
- k8s_namespace = " kube-system"
169
-
170
- scrape_interval = " 60s"
171
- scrape_timeout = " 15s"
172
- }
166
+ default = {}
173
167
nullable = false
174
168
}
175
169
@@ -182,32 +176,20 @@ variable "enable_node_exporter" {
182
176
variable "ne_config" {
183
177
description = " Node exporter configuration"
184
178
type = object ({
185
- create_namespace = bool
186
- k8s_namespace = string
187
- helm_chart_name = string
188
- helm_chart_version = string
189
- helm_release_name = string
190
- helm_repo_url = string
191
- helm_settings = map (string )
192
- helm_values = map (any )
193
-
194
- scrape_interval = string
195
- scrape_timeout = string
179
+ create_namespace = optional ( bool , true )
180
+ k8s_namespace = optional ( string , " prometheus-node-exporter " )
181
+ helm_chart_name = optional ( string , " prometheus-node-exporter " )
182
+ helm_chart_version = optional ( string , " 4.24.0 " )
183
+ helm_release_name = optional ( string , " prometheus-node-exporter " )
184
+ helm_repo_url = optional ( string , " https://prometheus-community.github.io/helm-charts " )
185
+ helm_settings = optional ( map (string ), {} )
186
+ helm_values = optional ( map (any ), {} )
187
+
188
+ scrape_interval = optional ( string , " 60s " )
189
+ scrape_timeout = optional ( string , " 60s " )
196
190
})
197
191
198
- default = {
199
- create_namespace = true
200
- helm_chart_name = " prometheus-node-exporter"
201
- helm_chart_version = " 4.24.0"
202
- helm_release_name = " prometheus-node-exporter"
203
- helm_repo_url = " https://prometheus-community.github.io/helm-charts"
204
- helm_settings = {}
205
- helm_values = {}
206
- k8s_namespace = " prometheus-node-exporter"
207
-
208
- scrape_interval = " 60s"
209
- scrape_timeout = " 60s"
210
- }
192
+ default = {}
211
193
nullable = false
212
194
}
213
195
@@ -220,14 +202,11 @@ variable "tags" {
220
202
variable "prometheus_config" {
221
203
description = " Controls default values such as scrape interval, timeouts and ports globally"
222
204
type = object ({
223
- global_scrape_interval = string
224
- global_scrape_timeout = string
205
+ global_scrape_interval = optional ( string , " 120s " )
206
+ global_scrape_timeout = optional ( string , " 15s " )
225
207
})
226
208
227
- default = {
228
- global_scrape_interval = " 120s"
229
- global_scrape_timeout = " 15s"
230
- }
209
+ default = {}
231
210
nullable = false
232
211
}
233
212
@@ -266,18 +245,14 @@ variable "enable_tracing" {
266
245
variable "tracing_config" {
267
246
description = " Configuration object for traces collection to AWS X-Ray"
268
247
type = object ({
269
- otlp_grpc_endpoint = string
270
- otlp_http_endpoint = string
271
- send_batch_size = number
272
- timeout = string
248
+ otlp_grpc_endpoint = optional ( string , " 0.0.0.0:4317 " )
249
+ otlp_http_endpoint = optional ( string , " 0.0.0.0:4318 " )
250
+ send_batch_size = optional ( number , 50 )
251
+ timeout = optional ( string , " 30s " )
273
252
})
274
253
275
- default = {
276
- otlp_grpc_endpoint = " 0.0.0.0:4317"
277
- otlp_http_endpoint = " 0.0.0.0:4318"
278
- send_batch_size = 50
279
- timeout = " 30s"
280
- }
254
+ default = {}
255
+ nullable = false
281
256
}
282
257
283
258
variable "enable_custom_metrics" {
@@ -336,28 +311,27 @@ variable "enable_nginx" {
336
311
default = false
337
312
}
338
313
339
-
340
314
variable "nginx_config" {
341
315
description = " Configuration object for NGINX monitoring"
342
316
type = object ({
343
- enable_alerting_rules = bool
344
- enable_recording_rules = bool
345
- enable_dashboards = bool
346
- scrape_sample_limit = number
317
+ enable_alerting_rules = optional ( bool )
318
+ enable_recording_rules = optional ( bool )
319
+ enable_dashboards = optional ( bool )
320
+ scrape_sample_limit = optional ( number )
347
321
348
- flux_gitrepository_name = string
349
- flux_gitrepository_url = string
350
- flux_gitrepository_branch = string
351
- flux_kustomization_name = string
352
- flux_kustomization_path = string
322
+ flux_gitrepository_name = optional ( string )
323
+ flux_gitrepository_url = optional ( string )
324
+ flux_gitrepository_branch = optional ( string )
325
+ flux_kustomization_name = optional ( string )
326
+ flux_kustomization_path = optional ( string )
353
327
354
- grafana_dashboard_url = string
328
+ grafana_dashboard_url = optional ( string )
355
329
356
- prometheus_metrics_endpoint = string
330
+ prometheus_metrics_endpoint = optional ( string )
357
331
})
358
332
359
- # defaults are pre-computed in locals.tf, provide a full definition to override
360
- default = null
333
+ # defaults are pre-computed in locals.tf
334
+ default = {}
361
335
}
362
336
363
337
variable "enable_istio" {
@@ -423,26 +397,17 @@ variable "enable_fluxcd" {
423
397
variable "flux_config" {
424
398
description = " FluxCD configuration"
425
399
type = object ({
426
- create_namespace = bool
427
- k8s_namespace = string
428
- helm_chart_name = string
429
- helm_chart_version = string
430
- helm_release_name = string
431
- helm_repo_url = string
432
- helm_settings = map (string )
433
- helm_values = map (any )
400
+ create_namespace = optional ( bool , true )
401
+ k8s_namespace = optional ( string , " flux-system " )
402
+ helm_chart_name = optional ( string , " flux2 " )
403
+ helm_chart_version = optional ( string , " 2.12.2 " )
404
+ helm_release_name = optional ( string , " observability-fluxcd-addon " )
405
+ helm_repo_url = optional ( string , " https://fluxcd-community.github.io/helm-charts " )
406
+ helm_settings = optional ( map (string ), {} )
407
+ helm_values = optional ( map (any ), {} )
434
408
})
435
409
436
- default = {
437
- create_namespace = true
438
- helm_chart_name = " flux2"
439
- helm_chart_version = " 2.12.2"
440
- helm_release_name = " observability-fluxcd-addon"
441
- helm_repo_url = " https://fluxcd-community.github.io/helm-charts"
442
- helm_settings = {}
443
- helm_values = {}
444
- k8s_namespace = " flux-system"
445
- }
410
+ default = {}
446
411
nullable = false
447
412
}
448
413
@@ -455,22 +420,15 @@ variable "enable_grafana_operator" {
455
420
variable "go_config" {
456
421
description = " Grafana Operator configuration"
457
422
type = object ({
458
- create_namespace = bool
459
- helm_chart = string
460
- helm_name = string
461
- k8s_namespace = string
462
- helm_release_name = string
463
- helm_chart_version = string
423
+ create_namespace = optional ( bool , true )
424
+ helm_chart = optional ( string , " oci://ghcr.io/grafana-operator/helm-charts/grafana-operator " )
425
+ helm_name = optional ( string , " grafana-operator " )
426
+ k8s_namespace = optional ( string , " grafana-operator " )
427
+ helm_release_name = optional ( string , " grafana-operator " )
428
+ helm_chart_version = optional ( string , " v5.5.2 " )
464
429
})
465
430
466
- default = {
467
- create_namespace = true
468
- helm_chart = " oci://ghcr.io/grafana-operator/helm-charts/grafana-operator"
469
- helm_name = " grafana-operator"
470
- k8s_namespace = " grafana-operator"
471
- helm_release_name = " grafana-operator"
472
- helm_chart_version = " v5.5.2"
473
- }
431
+ default = {}
474
432
nullable = false
475
433
}
476
434
0 commit comments