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

Configure Dynatrace RUM to work with applications sharing the same hostname

mihail_manoli
Frequent Guest

Hello,

I have the following issue with Dynatrace RUM. The company I'm working for has multiple applications that share the same hostname but are differentiated by the path.

Let's say that the first application is accessible under https://mydomain.net/app1 and the second one under https://mydomain.net/app2.

The traffic to the application pods is proxied using Kubernetes Ingress Controller from Kong. 

The problem is that I get 404 when requesting the ruxitagentjs file because it is being served from the root / path and not from /app1/:

<script type="text/javascript" src="/ruxitagentjs_PLACEHOLDER.js" data-dtconfig="rid=...|agentUri=/ruxitagentjs_PLACEHOLDER.js"></script>. 

mihail_manoli_1-1680160618622.png

 

I can confirm that the ruxitagentjs file is being correctly injected into application HTML, and it exists under https://mydomain.net/app1/ruxitagentjs_PLACEHOLDER.js 

 

One more mention: applications are not visible under the Applications or Web menu entries in Dynatrace, hence I can not configure manually each application. I get the following message:

mihail_manoli_0-1680160477080.png

What I can do in this case?

5 REPLIES 5

bradley_danyo
Dynatrace Mentor
Dynatrace Mentor

Hi,

I would take a look at the advanced settings in the application (see screenshot below).  This will allow you to determine where the JavaScript file is loaded from.  You could also try injection rules as well, if that doesn't work.  Hope this helps.

bradley_danyo_0-1680196226322.png

bradley_danyo_1-1680196263092.png

 

Hi, not clear to me, so you defined two Applications, one for app1, one for app2, right? Which detection rule did you apply for each one?

Also, you should always be able to get into your Applications from menu Settings - Monitoring - Monitoring Overview

paolo_fumanelli_0-1680273878064.png

 BR

Hi and thanks for the response!

The Cloud Native Full Stack deployment option has been used for configuring Dynatrace monitoring. I was expecting that the Web Applications will be automatically detected but this is not the case. In my understanding, an application appears in Dynatrace UI when some traffic from it is received by the Dynatrace environment. 

Under Settings - Monitoring - Monitoring Overview I don't see any application right now.

mihail_manoli_0-1680274547948.png

 

 

Hi,

While the JS is injected into your HTLM pages, you still have to define an application detection rule.  I'm not sure what your company is doing, but you should be able to see the default "My web application" where all RUM traffic goes by default, until a app detection rule is defined.

Good hint, @mihail_manoli please check under "Frontend" menu whether default "my web application" is visible and try to activate RUM for it for a while. You'll se traffic flowing and you can check domains/url from which data is collected. Then you can setup a detection rule accordingly.

Featured Posts