Amazon ECS
Amazon ECS Infra Agent - Setup & Installation Docs | Middleware
Amazon Elastic Container Service (Amazon ECS) is a fully managed container orchestration service that helps you easily deploy, manage, and scale containerized applications.
With the Infrastructure Agent (Infra Agent), you can effectively monitor your ECS containers and tasks running on ECS EC2 instances and ECS Fargate in your cloud, on-prem, and hybrid architectures.
Fargate Setup
Use the Middleware and AWS Fargate integration to monitor your applications without having to manage servers.
Create a Sidecar
For Each ECS Task that you want to monitor, add the following sidecar container in your task definition.
Collect Metrics
Adding the sidecar container mentioned above will automatically collect metrics data from your ECS tasks and containers. The Infra Agent uses the AWS ECS Task Metadata Endpoint to fetch metrics data.
Collect Logs
Forward your ECS Task logs to Middleware. The mw-agent
sidecar, mentioned above, must be running before proceeeding.
EC2 Setup
Container Trace and Log Collection
Begin collecting container trace and log data in your EC2 instance. The Infra Agent will collect ECS container logs emitted to the stdout
and stderr
log stream and receive traces from your application and send to your Middleware account.
Modify your Application Task Definition
You can setup container trace and log monitoring by modifying your Task Definition JSON file or following the below steps in the AWS Management Console.
Visualize Your Data
Quickly access your Amazon ECS data with Middleware’s default ECS dashboard. Navigate to the Dashboard Builder and select the AWS ECS Dashboard.
Troubleshooting
Was this page helpful?