# Kubernettes Resource Alerts on Nodes but not Pods?

**URL:** <https://community.dynatrace.com/t/kubernettes-resource-alerts-on-nodes-but-not-pods/38422>\
**Category:** Container platforms\
**Tags:** aws, kubernetes, problems-classic\
**Created:** [February 13, 2023, 4:57pm UTC](https://community.dynatrace.com/t/kubernettes-resource-alerts-on-nodes-but-not-pods/38422 "2023-02-13T16:57:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![shakib](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@shakib](https://community.dynatrace.com/u/shakib)\
**Post date:** [February 13, 2023, 4:57pm UTC](https://community.dynatrace.com/t/kubernettes-resource-alerts-on-nodes-but-not-pods/38422/1 "2023-02-13T16:57:52Z")

</div>

I keep seeing these CPU & Memory saturation alerts on Kubernettes hosts/nodes complaining about CPU being maxed out at 100%. But when I go into the problem in Dynatrace, I see that the node/host actually has 13% CPU usage. The same thing occurs on memory saturation alerts.

So, these are either false alerts or these problem alerts are actually complaining about CPU/memory saturation on individual pods, but there are many pods on each node. Is there a way to get Dynatrace to be more specific about what specific entity is having an issue?

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [February 14, 2023, 1:45pm UTC](https://community.dynatrace.com/t/kubernettes-resource-alerts-on-nodes-but-not-pods/38422/2 "2023-02-14T13:45:14Z")

</div>

Hi&nbsp;[@shakib](https://community.dynatrace.com/user/47920),

Can you provide an example from your env?

Thanks in advance.

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![shakib](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@shakib](https://community.dynatrace.com/u/shakib)\
**Post date:** [February 15, 2023, 4:04pm UTC](https://community.dynatrace.com/t/kubernettes-resource-alerts-on-nodes-but-not-pods/38422/3 "2023-02-15T16:04:54Z")

</div>

So I see these problems:

 ![shakib_0-1676475672748.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/9/b94f125cb516f3c29ce3baf78be76893cc7c7897.png)

The problem will advise of CPU request saturation at 94% on the node.

 ![shakib_2-1676475835642.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/b/db60a0af979886e2792ffa761ec8a19a6202bb50.png)

When I go into this node, regular CPU usage is normal but the CPU request saturation is really high. I want to know what pods or containers are contributing to this request saturation and I don’t see such level of detail on the host/node page.

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [February 15, 2023, 9:29pm UTC](https://community.dynatrace.com/t/kubernettes-resource-alerts-on-nodes-but-not-pods/38422/4 "2023-02-15T21:29:34Z")

</div>

Hi&nbsp;[@shakib](https://community.dynatrace.com/user/47920),

CPU request can be higher than the real CPU usage. CPU request the minimum CPU resource at the pod start. In your alert the SUM CPU resource quota reached the allocable CPU 94% on that node. Eg. you have 100 core allocable CPU in your node, and the pods on this host requested SUM 94 core. It does not mean that they will use it.

I think your problem is a configuration issue, your node a little bit overbooked regarding CPU requests. Maybe there are an autoscaling mechanism in place for load an some extra pods started.

 ![Mizs_0-1676495430338.png](https://global.discourse-cdn.com/dynatrace/original/2X/4/41fd636b2d90101cb0cc1fe405b3b551ae21636f.png)

Here is an example for a small cluster dashboard part at node level (requests and limits based on the allocable resources):

 ![Mizs_1-1676496263607.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/8/b883f6da15424a2e9bf5fd996651c489f35eedfc.png)

You can use these metrics to check the cpu requests on namespace level. Which namespace are the top “consumer” of the cpu requests. There is an embedded default dashboard by Dynatrace Kubernetes namespace resource quotas.

| builtin:kubernetes.resourcequota.requests\_cpu | Kubernetes: Resource quota - CPU requestsThis metric measures the cpu requests quota. The most detailed level of aggregation is resource quota. The value corresponds to the cpu requests of a resource quota. | Millicores | autoavgmaxmin |
| builtin:kubernetes.resourcequota.requests\_cpu\_used | Kubernetes: Resource quota - CPU requests usedThis metric measures the used cpu requests quota. The most detailed level of aggregation is resource quota. The value corresponds to the used cpu requests of a resource quota. | Millicores | autoavgmaxmin |

I hope it helps.

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![shakib](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@shakib](https://community.dynatrace.com/u/shakib)\
**Post date:** [February 16, 2023, 6:29pm UTC](https://community.dynatrace.com/t/kubernettes-resource-alerts-on-nodes-but-not-pods/38422/5 "2023-02-16T18:29:27Z")

</div>

Thank you, Mizső!&nbsp;  
So I have a takeaway to see if I can find out more about the CPU limits on the Nodes.&nbsp;  
I did try to create something using these 2 metrics but sadly for my environment there are no data at all (which is surprising because these are a namespace entity and dimension and I have namespaces set up).

| builtin:kubernetes.resourcequota.requests\_cpu | |
| --- | --- |

| builtin:kubernetes.resourcequota.requests\_cpu\_used | |
| --- | --- |

---

<div class="post-metadata">

**Author:** ![p-t](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@p-t](https://community.dynatrace.com/u/p-t)\
**Post date:** [April 7, 2024, 11:04pm UTC](https://community.dynatrace.com/t/kubernettes-resource-alerts-on-nodes-but-not-pods/38422/6 "2024-04-07T23:04:19Z")

</div>

I am observing the same issue. CPU reserve / CPU allocated ratio is over 90%. CPU usage is 5%.

I understand that sum of CPU reserve for each pod high and it should be adjusted.

Do we need to worry about this ratio as long as CPU usage is not high?

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [April 8, 2024, 7:26am UTC](https://community.dynatrace.com/t/kubernettes-resource-alerts-on-nodes-but-not-pods/38422/7 "2024-04-08T07:26:42Z")

</div>

A high ratio (over 90%) indicates that a significant portion of CPU resources is reserved but not actively utilized by pods, while this might not be a problem if the overall CPU usage is low, it can lead to inefficiencies and resource wastage.&nbsp;You mentioned that the CPU usage is currently at 5%. As long as the usage remains low, the high reserve-to-allocated ratio may not immediately impact performance.

High reserve-to-allocated ratios can cause resource contention, especially when other pods require additional CPU resources.

> **[Reserve Compute Resources for System Daemons](https://kubernetes.io/docs/tasks/administer-cluster/reserve-compute-resources/)**
>
> Kubernetes nodes can be scheduled to Capacity. Pods can consume all the available capacity on a node by default. This is an issue because nodes typically run quite a few system daemons that power the OS and Kubernetes itself. Unless resources are set...
