# CPU & memory utilization

### Overview

Infra App provides real-time information about cluster and workload utilization, so you can identify how resources such as CPU and Memory are being used and reserved across your Kubernetes cluster.

{% hint style="info" %}
**Metrics Server Required**

CPU & memory utilization will work out of the box with most clusters. For real-time usage metrics, you'll need to make sure the official Kubernetes [metrics server](https://github.com/kubernetes-sigs/metrics-server) is installed. Many cloud Kubernetes providers such as GKE include it by default.
{% endhint %}

### Resource utilization

In the main view, Infra App shows the resource utilization of each resource at a glance. Infra App automatically adds up all the resources used by all pods of your resource, so you can view the total footprint of your workload across the cluster:

![](/files/-MKCm1GSYbxaZe1aKykr)

**To view top resources by utilization,** click on **CPU Usage** or **Memory Usage** in the table to sort the resources:

![](/files/-MKCm8oKrhMKvbC3N7c4)

### Individual resource utilization

By clicking on an individual resource, you can see more details about its CPU & Memory utilization:

![](/files/-MKCmHkvoNIgecwizBNS)

{% hint style="info" %}
**Hint:** CPU & Memory Percent is calculated by comparing the workload's usage against (in order):

* Requests (if set)
* Limits (if set)
* Total cluster capacity
  {% endhint %}

To further view a resource's utilization breakdown by pod, the pod table includes the utilization per-pod:

![](/files/-MBuOYSDRe-Ep7nD2_l-)

### Cluster Utilization

In the utilization view, Infra App shows what percent your Kubernetes cluster's resources are being used:

![](/files/-MKCmUhdGGokTDGoGtDy)

In this case, the cluster is almost out of CPU requests, meaning that future resources may not be successfully deployed by Kubernetes.

### Node Utilization

In the utilization view, Infra App includes a list of nodes with CPU & Memory utilization included. You can switch between usage, requests and limits to compare different utilization metrics for your nodes.

![](/files/-MKCmdEJ_U8uqEpUFEHv)

Clicking on a node in the table, you'll see the node's utilization at a glance:

![](/files/-MKCmiop0_NTbZjhFjdf)

Lastly, a list of pods on the node view can show you how resources are allocated on this node:

![](/files/-MKCmmnpAkuLiXAimVG-)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.infra.app/features/cpu-and-memory-utilization.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
