Sign inSign up

toricls/ecs-taskmetadata-cloudwatch

By toricls

Updated over 7 years ago

An example sidecar container for Amazon ECS/Fargate to enable container-level metrics on CloudWatch

Image
0

5.1K

toricls/ecs-taskmetadata-cloudwatch repository overview

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:

Metrics

-- Metrics

-- Metrics

Contribution

Any contributions are welcome :raised_hands:

  1. Fork (https://github.com/toricls/ecs-taskmetadata-cloudwatch/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Create a new Pull Request

Author

toricls

Tag summary

Content type

Image

Digest

Size

5.6 MB

Last updated

over 7 years ago

docker pull toricls/ecs-taskmetadata-cloudwatch