- Newest
- Most votes
- Most comments
I haven't tested by myself buy maybe docker stats provide the information that you need
https://docs.docker.com/engine/reference/commandline/stats/
I think that you can get this information using the metadata endpoint...
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-metadata-endpoint-v4.html
Try
${ECS_CONTAINER_METADATA_URI_V4}/stats
${ECS_CONTAINER_METADATA_URI_V4}/task/stats
Thank you so much, I used sider car to monitoring disk usage ECS fargate Cluster https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/deploy_servicelens_CloudWatch_agent_deploy_ECS.html
Note: [Store the agent configuration in SSM Parameter Store] Is congigure you want monitoring ECS Docuement: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Agent-Configuration-File-Details.html
Hello!
Just to share more up-to-date information here.
Amazon CloudWatch Container Insights provides a suite of metrics and logs to monitor the performance and resource utilization of your containerized applications and their underlying resources. For Docker containers (Tasks), the following metrics are available when you complete the steps in 'Setting up Container Insights on Amazon ECS for cluster- and service-level metrics'. These metrics are available automatically once Container Insights is enabled and set up and can be filtered by cluster, service, and task, allowing you to monitor disk usage at different levels of granularity. Some relevant metrics for monitoring disk storage usage for tour Tasks:
- 'EphemeralStorageReserved' / 'EphemeralStorageUtilized': These metrics represents the number of bytes reserved/used by the container's filesystem. Ephemeral storage is used for the container root filesystem and any bind mount host volumes defined in the container image and task definition. [2].
- 'EBSFilesystemSize' / 'EBSFilesystemUtilized' : The total amount, in gigabytes (GB), of Amazon EBS filesystem storage that is allocated/used to the resources specified by the dimensions you're using. [2].
ECS Fargate supports different storage settings, so some metrics will be more relevant than others depending on the configuration.
Thanks!
Relevant content
- asked a year ago
- asked a year ago
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 2 months ago
Thank you, I don't know the sidecar, can you be more specific?