17 Apr 2023 04:24 PM - last edited on 18 Apr 2023 08:30 AM by MaciejNeumann
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.
Solved! Go to Solution.
17 Apr 2023 04:41 PM - edited 17 Apr 2023 08:26 PM
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)))
11 Jul 2023 04:42 PM
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?
11 Jul 2023 04:51 PM - edited 11 Jul 2023 04:51 PM
@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.
11 Jul 2023 05:13 PM
hostMonitoring deployment doesn't inject into application pods. On the other hand, it depends on the architecture if you need manual injection.