-
Notifications
You must be signed in to change notification settings - Fork 4
/
widgets.tf
56 lines (45 loc) · 1.22 KB
/
widgets.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
locals {
widgets = {
cpu_utilization = module.widget_cpu_utilization
memory_utilization = module.widget_memory_utilization
instances = module.widget_instances
services = module.widget_services
tasks = module.widget_tasks
}
}
module "widget_cpu_utilization" {
source = "./../cloudwatch/metric_widget"
title = "ECS CPU utilization"
left_metrics = [
local.metrics.cpu_reservation,
local.metrics.cpu_utilization,
]
left_range = [0, 100]
}
module "widget_memory_utilization" {
source = "./../cloudwatch/metric_widget"
title = "ECS memory utilization"
left_metrics = [
local.metrics.memory_reservation,
local.metrics.memory_utilization,
]
left_range = [0, 100]
}
module "widget_instances" {
source = "./../cloudwatch/metric_widget"
title = "ECS instances"
left_metrics = [local.metrics.instances]
left_range = [0, null]
}
module "widget_services" {
source = "./../cloudwatch/metric_widget"
title = "ECS services"
left_metrics = [local.metrics.services]
left_range = [0, null]
}
module "widget_tasks" {
source = "./../cloudwatch/metric_widget"
title = "ECS tasks"
left_metrics = [local.metrics.tasks]
left_range = [0, null]
}