# Kubernetes and RUM

**URL:** <https://community.dynatrace.com/t/kubernetes-and-rum/39331>\
**Category:** Container platforms\
**Tags:** real-user-monitoring-classic, kubernetes\
**Created:** [April 17, 2023, 3:24pm UTC](https://community.dynatrace.com/t/kubernetes-and-rum/39331 "2023-04-17T15:24:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bill\_scheuernst](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/bill_scheuernst/32/2211_2.png) [@bill\_scheuernst](https://community.dynatrace.com/u/bill_scheuernst)\
**Post date:** [April 17, 2023, 3:24pm UTC](https://community.dynatrace.com/t/kubernetes-and-rum/39331/1 "2023-04-17T15:24:14Z")

</div>

Is there a way to link a frontend web application configured in RUM to a Kubernetes pod?&nbsp; It appears there are no options in the pod itself as it is on a host entity.&nbsp; Pods/workloads do not have the option.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [April 17, 2023, 3:41pm UTC](https://community.dynatrace.com/t/kubernetes-and-rum/39331/2 "2023-04-17T15:41:12Z")

</div>

No, it must be a deep monitored process with OneAgent. If the questions stands for show me the pods in which the traffic from my app ends, then I believe this is doable by querying on entities with the relation filtering.

You should query process group instances (they have the&nbsp;KUBERNETES\_FULL\_POD\_NAME key in the METADATA property) which contain services which are called from the application. Something like this - but keep in mind it must be direct called from the application:

```markup
type(PROCESS_GROUP_INSTANCE),toRelationships.runsOnProcessGroupInstance(type(SERVICE),toRelationships.calls(entityId(APPLICATION-DB5DFB404A9A17C1)))

```

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [July 11, 2023, 3:42pm UTC](https://community.dynatrace.com/t/kubernetes-and-rum/39331/3 "2023-07-11T15:42:44Z")

</div>

Regarding this, it’s not clear to me if OneAgent on Kubernetes in any classicFullStack, hostMonitoring, applicationMonitoring or cloudNativeFullStack mode automatically injects RUM JavaScript into HTML pages inside web servers running in pods or if we need to use the manual injection approach?

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [July 11, 2023, 3:51pm UTC](https://community.dynatrace.com/t/kubernetes-and-rum/39331/4 "2023-07-11T15:51:10Z")

</div>

[@DanielS](https://community.dynatrace.com/user/35788)&nbsp;process must be deep monitored and there must be a [supported technology](https://www.dynatrace.com/support/help/setup-and-configuration/technology-support#rum-auto-injection)&nbsp;of course.  
So classicFullStack, applicationMonitoring and cloudNativeFullStack will work and will inject RUM JS (if other conditions are satisfied). With hostMonitoring - as it says - it’s just monitoring of host (node) metrics in K8S and it does not do any deep monitoring and RUM will not be injected.

---

<div class="post-metadata">

**Author:** ![ricuevas](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ricuevas/32/33038_2.png) [@ricuevas](https://community.dynatrace.com/u/ricuevas)\
**Post date:** [July 11, 2023, 4:13pm UTC](https://community.dynatrace.com/t/kubernetes-and-rum/39331/5 "2023-07-11T16:13:02Z")

</div>

hostMonitoring deployment doesn’t inject into application pods. On the other hand, it depends on the architecture if you need manual injection.
