-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ECS] [Metrics]: Container Insights for ECS #70
Comments
this should also resolve #106 |
This would be awesome. We use Cloudwatch Event Rules (cron) to schedule jobs that run Tasks on our ECS Cluster. If a job is delayed, we have no visibility into the resource utilisation of the task. |
Is this a limitation for fargte only? We have a EC2 launch type cluster and also only get Service level metrics. But I would like to see more broken down metrics for each Task that a Service spawned, because I want to identify tasks that reach their memory limit. |
+1 |
3 similar comments
+1 |
+1 |
+1 |
This feature will leverage the new "CloudWatch Container Insights" that was just announced: https://aws.amazon.com/about-aws/whats-new/2019/05/cloudwatch-container-insights-for-eks-and-kubernetes-preview/ |
@coultn - to confirm - this will allow us to see cloud watch metrics on regular ECS Fargate tasks? |
@bgkelly We will have more details when it launches, but in a nutshell, this will give you the capability to (1) see cloudwatch metrics (and set alarms) at the cluster/service/task definition-level, including stats such as max, min, average, and percentiles (2) Using Cloud Watch Logs Insights (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html), you will be able to visualize virtually any ad-hoc metric constructed via queries of your structured log data. |
Is it possible that recent release broke ecs cluster/services metrics? And it seems that not only me is experiencing same issue: https://forums.aws.amazon.com/thread.jspa?threadID=305369
|
@iarlyy we're looking into this and will keep you posted. Thanks much for the details! |
Hi everyone, This feature is now in preview: https://aws.amazon.com/about-aws/whats-new/2019/07/introducing-container-insights-for-ecs-and-aws-fargate-in-preview/ Look forward to feedback! |
Hi All- I tried to enable container insights in one of our accounts this morning using the cli in the documentation and it failed. Any chance I'm missing a step here?
I tried the account settings in the ECS console and do not see insights as an option. Thanks, Jeff |
The same issue encountered as @jeffmarcinko . |
@jeffmarcinko what region are you running these calls in? At the moment, Container Insights is only available in Ohio, Frankfurt and Tokyo according to the AWS Public Docs. @Mehul1313 Container Insights can only be enabled on new clusters. "During this public preview, only new clusters can be enabled for Container Insights." from the AWS Public Docs. |
Totally glossed over the region availability, thanks for pointing that out. I will be looking forward to the GA release. |
@jeffmarcinko |
Is there any way we can enable Container Insights on existing clusters? Even if I delete and re-create cluster with the same name and container insights option checked the cluster will be re-created without container insights enabled. In more details what is going: |
I am experiencing the exact same issue |
Would be interested in seeing this available in govcloud (us-gov-west-1) |
Shipped! More info here: https://aws.amazon.com/about-aws/whats-new/2019/08/container-monitoring-for-amazon-ecs-eks-and-kubernetes-is-now-available-in-amazon-cloudwatch/ Also @redzoya updating existing clusters now supported. Learn more here: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/deploy-container-insights-ECS.html |
Thank you! |
@akshayram-wolverine Thanks |
@Manoj426 I think you need to upgrade your AWS cli to latest version. |
erm what about cloudformation? |
I can't see that this is working. |
I don't see any difference either @bendavies. Also my |
Hey @adiii717, in my case the problem was that I needed to set the
And what AWS support told me when I asked them
Good luck! |
I need the Task level metrics like CPU & Memory utilization using CLI command. I I use get-metric-statistic comman, can get at TaskDefinitionFamily level but not at Task level which I can see in the console. Not sure which command to use to get the summary of the CPUutilization at each Task/container level |
Tell us about your request
Task level CPU and memory metrics in CloudWatch
Which service(s) is this request for?
ECS, Fargate
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
Having CPU/memory metrics per task allows us to debug task issues such as a hot task. We're able to isolate a task that might be in trouble and kill it before it introduces an issue. The cluster level metrics aren't helpful in many other cases.
Are you currently working around this issue?
This is impossible in Fargate without introducing a buddy container but is possible in ECS by using an agent like cAdvisor on the ECS instance. Adding a buddy container, like DataDogs (https://docs.datadoghq.com/integrations/ecs_fargate/#installation), to each and every task adds significant overhead in a microservice architecture.
Additional context
From what we've gathered there is indeed metrics in the metadata of each task but it's not possible to collect it for Fargate externally.
The text was updated successfully, but these errors were encountered: