Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance ECS Container Insights by enabling host logs to be sent to CloudWatch #177

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@ This folder contains the example Amazon ECS task definitions for DaemonService d
Check the sub folders for different functionality:

### [cwagent-ecs-instance-metric](cwagent-ecs-instance-metric)
This folder provides the functionality that enables you to deploy the CloudWatch Agent to collect ECS Instance Metrics.
This folder provides the functionality that enables you to deploy the CloudWatch Agent to collect ECS Instance Metrics.

### [fluent-bit-ecs-instance-logs]( fluent-bit-ecs-instance-logs)
This folder provides the functionality that enables you to deploy Fluent-Bit to collect ECS Container Instance.

### [fluent-bit-cwagent-combined-cfn]( fluent-bit-cwagent-combined-cfn)
This folder provides the functionality that enables you to deploy both the CloudWatch Agent and Fluent-Bit in a single CloudFormation stack.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## CloudWatch Agent and Fluent-Bit for ECS Instance Metrics and Logs Collection Quick Start

The cloudformation template in this folder helps you to quickly deploy both the CloudWatch agent and Fluent-Bit as daemon-services using a single CloudFormation stack to collect ECS Container Instance Metrics and Logs.

* [fluent-bit-cwagent-combined-cfn.yaml](fluent-bit-cwagent-combined-cfn.yaml): sample cloudformation template


Run following aws cloudformation command with the cloudformation template file to deploy the Fluent-Bit and CloudWatch agent Daemonsets with required IAM roles. ***Please assign the actual ECS cluster name and the cluster region in the first two lines of the command separately.***

```
ClusterName=<your-ecs-cluster-name>
Region=<your-ecs-cluster-region>
aws cloudformation create-stack --stack-name Fluent-Bit-${ClusterName}-${Region} \
--template-body file://fluent-bit-cwagent-combined-cfn.yaml \
--parameters ParameterKey=ClusterName,ParameterValue=${ClusterName} \
ParameterKey=CreateIAMRoles,ParameterValue=True \
--capabilities CAPABILITY_NAMED_IAM \
--region ${Region}
```
Loading