<p>I deployed a EKS cluster and a fargate profile. Then I deployed a few application to this cluster. I can see these fargate instances are launched.</p>
<p><a href="https://i.stack.imgur.com/gYzMv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gYzMv.png" alt="enter image description here" /></a></p>
<p>when I click each of this instance, it shows me some information like <code>os</code>, <code>image</code> etc. But it doesn't tell me the CPU and memory. When I look at fargate pricing: <a href="https://aws.amazon.com/fargate/pricing/" rel="nofollow noreferrer">https://aws.amazon.com/fargate/pricing/</a>. It is calculated based on CPU and Memory.</p>
<p>I have used ECS and it is very clear that I need to provision CPU/Memory in service/task level. But I can't find anything in EKS.</p>
<p>How do I know how much resources they are consuming?</p>

<p>With Fargate you don`t have provision, configure or scale virtual machines to run your containers so that they become fundamental compute primitive.</p>
<p>This solution model is called <code>serverless</code> where you are being charged for only the compute resources and storage that are need to execute some piece of your code. It does not mean that there are not server involved in this, it just you don`t need to care about those.</p>
<p>To monitor there those you can use <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/viewing_cloudwatch_metrics.html#viewing_service_metrics" rel="nofollow noreferrer">CloudWatch</a>.  Below documents describe how this can be achieved:</p>
<ul>
<li><p><a href="https://aws.amazon.com/premiumsupport/knowledge-center/ecs-fargate-high-cpu-utilization/" rel="nofollow noreferrer">How do I troubleshoot high CPU utilization on an Amazon ECS task on
Fargate?</a></p>
</li>
<li><p><a href="https://aws.amazon.com/premiumsupport/knowledge-center/ecs-tasks-fargate-memory-utilization/" rel="nofollow noreferrer">How can I monitor high memory utilization for Amazon ECS tasks on<br />
Fargate?</a></p>
</li>
</ul>
<p>It is worth to mention that Fargate is just a launch type for ECS (Another one is EC2). Please have a look at the <a href="https://epsagon.com/development/key-metrics-for-monitoring-amazon-ecs-and-aws-fargate/" rel="nofollow noreferrer">diagram</a> in this document for clear image of how those are connected. The CloudWatch metrics are collected automatically for Fargate. If you are using the AKS with Fargate you can monitor them with usage of metrics-addon or prometheus inside your kubernetes cluster.</p>
<p>Here's an <a href="https://sysdig.com/blog/monitor-aws-fargate-prometheus/" rel="nofollow noreferrer">example</a> of monitoring Fargate with Prometheus. Notice that it scrapes the metrics from CloudWatch.</p>
