Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
c2a2fca
feat(ecs/network): metrics and widgets scaffold
mskrajnowski Apr 28, 2020
6107ca8
feat(ecs/network): ALB response metrics and dashboard widgets
mskrajnowski Apr 28, 2020
e1e679f
refactor(ecs/network): ALB widget metrics reorder
mskrajnowski Apr 29, 2020
ceebd2f
feat(ecs/network): more ALB metrics and widgets
mskrajnowski Apr 29, 2020
1777e4a
Merge branch 'master' into feat/ecs-network-dashboards
mskrajnowski Apr 29, 2020
706a0f0
refactor(ecs/network): DRYing up request counting metrics with cloudw…
mskrajnowski Apr 29, 2020
e23783d
refactor(ecs/network): DRYing up response time metrics with cloudwatc…
mskrajnowski Apr 29, 2020
d549420
feat(ecs/network): nat instance cpu metrics and widgets
mskrajnowski Apr 30, 2020
1385fcd
fix(ecs/network): NAT instance average cpu utilization metric label a…
mskrajnowski Apr 30, 2020
ba9161c
feat(ecs/network): NAT instance network traffic metrics and widgets
mskrajnowski Apr 30, 2020
7a65b86
docs(ecs): added a simple locustfile to easily generate some traffic …
mskrajnowski Apr 30, 2020
b6678e4
feat(ecs/network): removed NAT instance average IO metrics
mskrajnowski Apr 30, 2020
0419fb7
feat(ecs/network): NAT gateway IO metrics and widgets
mskrajnowski Apr 30, 2020
3aa3859
feat(ecs/network): NAT gateway dropped packets metric
mskrajnowski Apr 30, 2020
2cac022
refactor(ecs/network): renamed NAT gateway widgets
mskrajnowski Apr 30, 2020
c5bd5d0
feat(ecs/network): NAT gateway connection metrics and widgets
mskrajnowski Apr 30, 2020
e2e9c7f
fix(ecs/network): NAT gateway connections established metric showing …
mskrajnowski Apr 30, 2020
693d7a4
docs(ecs): revert to using NAT instances in the example
mskrajnowski Apr 30, 2020
03e3c8c
Merge branch 'master' into feat/ecs-network-dashboards
mskrajnowski May 6, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions ecs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,14 @@ Based on [AWS reference architecture](https://github.com/aws-samples/ecs-refarch

The ID of the Internet Gateway

* `lb_metrics`

Load balancer related Cloudwatch metrics, see [network/metrics.tf](./network/metrics.tf)

* `lb_widgets`

Load balancer related Cloudwatch dashboard widgets, see [network/widgets.tf](./network/widgets.tf)

* `load_balancer_arn`

The ARN of the Application Load Balancer
Expand Down Expand Up @@ -157,6 +165,22 @@ Based on [AWS reference architecture](https://github.com/aws-samples/ecs-refarch

Cluster name

* `nat_gateway_metrics`

NAT gateway related Cloudwatch metrics, see [network/metrics.tf](./network/metrics.tf)

* `nat_gateway_widgets`

NAT gateway related Cloudwatch dashboard widgets, see [network/widgets.tf](./network/widgets.tf)

* `nat_instance_metrics`

NAT instance related Cloudwatch metrics, see [network/metrics.tf](./network/metrics.tf)

* `nat_instance_widgets`

NAT instance related Cloudwatch dashboard widgets, see [network/widgets.tf](./network/widgets.tf)

* `private_blocks`

The CIDR blocks of private subnets
Expand Down
16 changes: 16 additions & 0 deletions ecs/example/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,22 @@ module "dashboard" {

name = "terraform-ecs-example"
widgets = [
module.cluster.lb_widgets.responses,
module.cluster.lb_widgets.response_percentages,
module.cluster.lb_widgets.target_response_time,
module.cluster.lb_widgets.connections,
module.cluster.lb_widgets.lcus,
module.cluster.lb_widgets.traffic,
module.cluster.nat_instance_widgets.cpu_utilization,
module.cluster.nat_instance_widgets.cpu_credit_balance,
module.cluster.nat_instance_widgets.cpu_credit_usage,
module.cluster.nat_instance_widgets.network_bytes,
module.cluster.nat_instance_widgets.network_packets,
module.cluster.nat_gateway_widgets.network_bytes,
module.cluster.nat_gateway_widgets.network_packets,
module.cluster.nat_gateway_widgets.active_connections,
module.cluster.nat_gateway_widgets.connection_attempts,

module.hosts.widgets.instance_scaling,
module.hosts.widgets.instance_states,
module.hosts.widgets.memory_utilization,
Expand Down
24 changes: 24 additions & 0 deletions ecs/network/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ Creates networking resources needed for a standard ECS cluster setup:

The ID of the Internet Gateway

* `lb_metrics`

Load balancer related Cloudwatch metrics, see [metrics.tf](./metrics.tf)

* `lb_widgets`

Load balancer related Cloudwatch dashboard widgets, see [widgets.tf](./widgets.tf)

* `load_balancer_arn`

The ARN of the Application Load Balancer
Expand All @@ -108,6 +116,22 @@ Creates networking resources needed for a standard ECS cluster setup:

The canonical hosted zone ID of the Application Load Balancer (to be used in a Route 53 Alias record)

* `nat_gateway_metrics`

NAT gateway Cloudwatch metrics, see [metrics.tf](./metrics.tf)

* `nat_gateway_widgets`

NAT gateway Cloudwatch dashboard widgets, see [widgets.tf](./widgets.tf)

* `nat_instance_metrics`

NAT instance Cloudwatch metrics, see [metrics.tf](./metrics.tf)

* `nat_instance_widgets`

NAT instance Cloudwatch dashboard widgets, see [widgets.tf](./widgets.tf)

* `private_blocks`

The CIDR blocks of private subnets
Expand Down
Loading