https://github.com/toricls/ecs-taskmetadata-cloudwatch
An example sidecar container for Amazon ECS and AWS Fargate to enable task/container-level metrics on CloudWatch
https://github.com/toricls/ecs-taskmetadata-cloudwatch
cloudwatch ecs fargate monitoring
Last synced: 6 months ago
JSON representation
An example sidecar container for Amazon ECS and AWS Fargate to enable task/container-level metrics on CloudWatch
- Host: GitHub
- URL: https://github.com/toricls/ecs-taskmetadata-cloudwatch
- Owner: toricls
- Created: 2018-12-28T01:31:44.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-08T05:10:21.000Z (almost 7 years ago)
- Last Synced: 2025-03-24T05:35:09.054Z (7 months ago)
- Topics: cloudwatch, ecs, fargate, monitoring
- Language: Go
- Homepage:
- Size: 1.67 MB
- Stars: 17
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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](https://cloud.docker.com/repository/docker/toricls/ecs-taskmetadata-cloudwatch) 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](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-metadata-endpoint-v3.html) 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:
1. Fork ([https://github.com/toricls/ecs-taskmetadata-cloudwatch/fork](https://github.com/toricls/ecs-taskmetadata-cloudwatch/fork))
1. Create a feature branch
1. Commit your changes
1. Rebase your local changes against the master branch
1. Create a new Pull Request## Author
[toricls](https://github.com/toricls)