[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 Antwort
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
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen