cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Kubernetes and RUM

bill_scheuernst
DynaMight
DynaMight

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

Dynatrace Certified Professional
4 REPLIES 4

Julius_Loman
DynaMight Legend
DynaMight Legend

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 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:

 

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

 

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

DanielS
DynaMight Guru
DynaMight Guru

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?

The true delight is in the finding out rather than in the knowing.

@DanielS process must be deep monitored and there must be a supported technology 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.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

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

IT Master | dynatrace Certified professional | SRE Certified | Scrum Certified | Azure Certified | https://www.linkedin.com/in/rodrigocuevas/

Featured Posts