ecs-taskmetadata-cloudwatch
ecs-taskmetadata-cloudwatch copied to clipboard
An example sidecar container for Amazon ECS and AWS Fargate to enable task/container-level metrics on CloudWatch
Amazon ECS Task Metadata :point_right: CloudWatch Custom Metrics
TODO: Write more about usage including required IAM role permissions
This is an example project which puts your container-level metrics into CloudWatch on Amazon ECS and AWS Fargate.
Pre-built docker image is available at a Docker Hub repository to try this quickly.
To try, just run the pre-built container as a sidecar of your application container, then you'll see CPUUtilization and MemoryUtilization metrics on your CloudWatch console under ECS/Containers namespace.
NOTE
- This project uses Task Metadata Endpoint v3 and not works with v2
- For Fargate launch type, Fargate Platform Version v1.3.0 or later is required
- For EC2 launch type, v1.21.0 or later of the Amazon ECS container agent is required
- Windows container is not supported for now
:camera: screenshots :point_down:

--

--

Contribution
Any contributions are welcome :raised_hands:
- Fork (https://github.com/toricls/ecs-taskmetadata-cloudwatch/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Create a new Pull Request