About how to monitor ephemeral storage usage in Fargate
0
From Apr 30, 2021, Amazon ECS on AWS Fargate allows you to configure the size of ephemeral storage for Tasks. However, I am consider about ways so that I monitor the usage of ephemeral storage . Is there anyway but use a sidecar container to get the storage capacity and send custom metrics to CloudWatch?
Thank you so much!
asked a month ago37 views
2 Answers
1
Accepted Answer
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 a month 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 a month ago
Relevant questions
Fargate Emphemeral Technology
asked 10 months ago[Announcement] AWS Lambda now allows customers to configure up to 10 GB of ephemeral storage for Lambda functions
asked 3 months agoRDS DB migrations using ECS and Fargate
asked 2 years agoAbout how to monitor ephemeral storage usage in Fargate
Accepted Answerasked a month agoWhich role do I have to use for the Fargate tasks on AWS Batch?
Accepted Answerasked 6 months agoIncrease EKS Fargate storage
asked 9 days agoAre there any best practices for sending logs from ECS on EC2, ECS on Fargate and other AWS services such as API GW, load balancers (and more AWS services) to Splunk?
asked 3 months agoFargate ephemeral storage 200gb - per task or shared by all tasks?
Accepted Answerasked 5 months agoARM64 support for Batch jobs on AWS Fargate
Accepted Answerasked 5 months agoWordpress in Docker container on Fargate
asked 3 months ago