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.
Use the Middleware and AWS Fargate integration to monitor your applications without having to manage servers.
For Each ECS Task that you want to monitor, add the following sidecar container in your task definition.
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.
Forward your ECS Task logs to Middleware. The mw-agent
sidecar, mentioned above, must be running before proceeeding.
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.
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.
Quickly access your Amazon ECS data with Middleware’s default ECS dashboard. Navigate to the Dashboard Builder and select the AWS ECS Dashboard.