[Monitoring Disk use on ECS Container Type Fargate]

0

Hi everyone, I am using ECS Fargate to build web application. I'm currently looking to monitor a container's disk usage? I've enabled the Insight container, but I don't see disk usage metrics Can you help me on this issue?

  • Have you explored using sidecar (with CloudWatch agent) to source the disk usage data

  • Thank you, I don't know the sidecar, can you be more specific?

1 個回答
0

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
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南