Is there a way to get the total execution time of an ECS task?

0

Hi, I need to get the execution time of an ECS task. With CloudTrail, I'm able to get the start time of the task but can't find any tag with stop/finish execution timestamp information. How can I achieve that? Thank you very much.

1 回答
1
已接受的回答

Recent tasks are visible on the ECS Tasks List. You will need to filter on Desired Status=Stopped. For historical task information, you can use the CloudWatch Container Insights. Please see here for a step by step guide.

profile pictureAWS
已回答 1 年前
profile pictureAWS
专家
kentrad
已审核 1 年前
  • Awesome link you provided. Thank you very much. Finally, is there a way to convert the total execution time into a Metric?

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则