[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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン