# Kubernetes Installation and HU consumption

**URL:** <https://community.dynatrace.com/t/kubernetes-installation-and-hu-consumption/39174>\
**Category:** Container platforms\
**Tags:** installation, kubernetes\
**Created:** [April 5, 2023, 1:51pm UTC](https://community.dynatrace.com/t/kubernetes-installation-and-hu-consumption/39174 "2023-04-05T13:51:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcoCritti](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marcocritti/32/8974_2.png) [@MarcoCritti](https://community.dynatrace.com/u/MarcoCritti)\
**Post date:** [April 5, 2023, 1:51pm UTC](https://community.dynatrace.com/t/kubernetes-installation-and-hu-consumption/39174/1 "2023-04-05T13:51:08Z")

</div>

Hello  
I have some questions which are not 100% clear to me. Therefore I would appreciate any help.

1. In order to reduce HU consumption does it make any difference if we follow the Classic full-stack injection or Cloud-native full-stack injection? ( we assumed with CNFS we could limit monitoring to certain namespaces/pods and would need only HU for the memory used by the namespaces and pods. )

2. If we use application only to achieve the above scenario then would we only need Host Units for the memory used by the pods?

3. And would we still be able to have End-To-End traces from the UI to the database in App-Only mode?

Thanks in advanced 🙂

Cheers  
Marco

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [April 5, 2023, 2:59pm UTC](https://community.dynatrace.com/t/kubernetes-installation-and-hu-consumption/39174/2 "2023-04-05T14:59:18Z")

</div>

As far I know, the HU are calculated based on Memory detected, not used.

When you run CNFS or CFS, the HU calculation will be based on your KS Nodes memory.

For App-only, I am not sure, and really interested on this. Let’s wait for someone with the right answer 😁

edit: I think I got it here: [Application and Infrastructure Monitoring (Host Units) — Dynatrace Docs](https://www.dynatrace.com/support/help/manage/monitoring-consumption/application-and-infrastructure-monitoring#application-only-monitoring)

"

For these technologies,&nbsp; **host units are calculated based on memory detected at the operating system instance or container level**. Calculations take into account the detected memory limit, such as container memory limits. If no memory limits are detected, calculations may use the underlying host memory, which may reflect a higher number of host units.

"

---

<div class="post-metadata">

**Author:** ![MarcoCritti](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marcocritti/32/8974_2.png) [@MarcoCritti](https://community.dynatrace.com/u/MarcoCritti)\
**Post date:** [April 5, 2023, 11:23pm UTC](https://community.dynatrace.com/t/kubernetes-installation-and-hu-consumption/39174/3 "2023-04-05T23:23:56Z")

</div>

My understanding is:

1. Classic full-stack injection or Cloud-native full-stack injection will&nbsp; be based on your KS Nodes memory as [@dannemca](https://community.dynatrace.com/user/18264) mentioned above.

2. Application only would consume the maximum amount of resources per monitored application(per monitored pod or namespace)  
3. With application only you still get the “full-stack mode”, so services and traces are available as well as UX etc.  
**Limitations** : When deployed in application-only mode, OneAgent monitors the memory, disk, CPU, and networking of processes within the container only. Host metrics aren’t monitored. Topology is limited to pods and containers.

> **[How it works](https://docs.dynatrace.com/docs/ingest-from/setup-on-k8s/how-it-works)**
>
> In-depth description on how the deployment on Kubernetes works.

If someone has a different understanding, please correct me 😉

Cheers  
Marco

---

<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:** [April 6, 2023, 7:16pm UTC](https://community.dynatrace.com/t/kubernetes-installation-and-hu-consumption/39174/4 "2023-04-06T19:16:34Z")

</div>

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

There is another limitation of App-only. Native DT log monitoring does not work in app-only mode. In case of App-only you have to ingest to the logs via the log ingest API eg. with fluentd or fluentbit…

And&nbsp;[@dannemca](https://community.dynatrace.com/user/18264)&nbsp;has found the right asnwer for the app only HU calculation. App-only&nbsp;worth using only if there are memory limits.

Best regards,

Mizső
