2 Answers
- Newest
- Most votes
- Most comments
1
Hi,
As you've mentioned, there's no native CloudWatch metrics of the ephemeral storage usage, the only workarounds i see would be
- Like you said, a sidecar container to grab the metrics
- Embed in your application the capability to push metric asynchronously to CloudWatch API
- Use an external SSM command to list Fargate tasks and use ECS exec capability to fetch the metric for pushing it to CloudWatch. A bit tricky, i must admit. ( for ref: https://aws.amazon.com/blogs/containers/new-using-amazon-ecs-exec-access-your-containers-fargate-ec2/ )
answered 2 years ago
1
You can use the "/" partition to determine the amount of free space left in the Fargate task. There's a plan to publish an ephemeral storage/disk utilization metric via container insights by service team but timeline is not clear at this time.
answered 2 years ago
Relevant content
- Accepted Answerasked 3 years ago
- asked 9 months ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 25 days ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago