<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: RUM Automatic Javascript injection setup with reverse proxies and gateways in Real User Monitoring</title>
    <link>https://community.dynatrace.com/t5/Real-User-Monitoring/RUM-Automatic-Javascript-injection-setup-with-reverse-proxies/m-p/200497#M4009</link>
    <description>&lt;P&gt;It turned out to be 2 things for me:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) nginx version downgrade&lt;/P&gt;&lt;P&gt;2) Setting `&lt;SPAN&gt;x-dynatrace-origin-url` to my app url configured in the detection settings.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3) Can't say if `X-Forwarded-Host` and `X-Forwarded-Path` request headers also helped but I have them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit"&gt;Yup the sad part is that it is a magic and&amp;nbsp;&lt;/FONT&gt;indeterministic IMO&lt;FONT face="inherit"&gt;.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Dec 2022 15:45:38 GMT</pubDate>
    <dc:creator>bhantol2c</dc:creator>
    <dc:date>2022-12-14T15:45:38Z</dc:date>
    <item>
      <title>RUM Automatic Javascript injection setup with reverse proxies and gateways</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/RUM-Automatic-Javascript-injection-setup-with-reverse-proxies/m-p/191555#M3784</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have following network flow:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) browser -&amp;gt;&lt;/P&gt;&lt;P&gt;2) F5 (company.com/myapp1) -&amp;gt; (not in my control)&lt;/P&gt;&lt;P&gt;3) Apache (reverse proxy) -&amp;gt; (not in my control)&lt;/P&gt;&lt;P&gt;4) istio gateway (prod.istio.company.com/group/webapp1) mesh -&amp;gt; (can control virtual hosts/routing/headers only)&lt;/P&gt;&lt;P&gt;5) kubenetes pods (istio mesh) -&amp;gt;&amp;nbsp; (full control)&lt;/P&gt;&lt;P&gt;6) inside pods - nginx - serves static urls (full control over nginx)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;URL remains same as original in the browser.&lt;/P&gt;&lt;P&gt;Step 4,5,6 is in kubernetes and may qualify for dynatrace instrumentation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dynatrace setup:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We host dynatrace (i.e. managed).&lt;/P&gt;&lt;P&gt;Created a Web application with full URL detection &lt;A href="https://company.com/myapp1/" target="_blank" rel="noopener"&gt;https://company.com/myapp1/&lt;/A&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;FONT size="3"&gt;&lt;EM&gt;Traffic for this application is detected by the following rules:&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;FONT size="3"&gt;&lt;EM&gt;- URL starts with&amp;nbsp;&lt;A href="https://company.com/myapp1/" target="_blank" rel="noopener"&gt;https://company.com/myapp1/&lt;/A&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I visit myapp1 from browser I see nothing injected in there.&lt;/P&gt;&lt;P&gt;Then went through Tips For Troubleshooting&amp;nbsp;&amp;nbsp;&lt;A href="https://www.dynatrace.com/support/help/how-to-use-dynatrace/real-user-monitoring/setup-and-configuration/web-applications/troubleshooting/why-dont-i-see-my-applications-or-monitoring-data" target="_blank" rel="noopener"&gt;https://www.dynatrace.com/support/help/how-to-use-dynatrace/real-user-monitoring/setup-and-configuration/web-applications/troubleshooting/why-dont-i-see-my-applications-or-monitoring-data&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) It says go to&amp;nbsp;&lt;STRONG&gt;Settings&lt;/STRONG&gt;&lt;SPAN&gt; &amp;gt; &lt;/SPAN&gt;&lt;STRONG&gt;Monitoring&lt;/STRONG&gt;&lt;SPAN&gt; &amp;gt; &lt;/SPAN&gt;&lt;STRONG&gt;Monitoring overview &lt;/STRONG&gt;but I don't see Settings&lt;/P&gt;&lt;P&gt;(is it a role issue ? rant: why don't you guys provide a disabled menu or provide a documentation warning).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Other steps are to check if this qualifies:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/how-to-use-dynatrace/real-user-monitoring/setup-and-configuration/web-applications/initial-configuration/rum-injection" target="_blank" rel="noopener"&gt;https://www.dynatrace.com/support/help/how-to-use-dynatrace/real-user-monitoring/setup-and-configuration/web-applications/initial-configuration/rum-injection&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) What can I do if an uninstrumented component rewrites parts of the URL?&amp;nbsp;&lt;A class="" href="https://www.dynatrace.com/support/help/how-to-use-dynatrace/real-user-monitoring/setup-and-configuration/web-applications/initial-configuration/define-your-applications-via-the-my-web-application-placeholder#rum-appdetection-uninstrumentedcomponent" target="_blank" rel="noopener"&gt;What can I do if an uninstrumented component rewrites parts of the URL?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I went through this and it says I need a header X-Forwarded-Host or Forwarded header with &lt;A href="http://www.company.com" target="_blank" rel="noopener"&gt;www.company.com&lt;/A&gt;&amp;nbsp;? Why does dynatrace need this information - which i going to be same as in the url detection rule or should it be "prod.istio.company.com/group/webapp1" ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BIG QUESTION: &lt;/STRONG&gt;How does Dynatrace actually inject the &amp;lt;script into my index.html ? Does it do network sniffing ? Or somehow figures out my kubernetes hosts and installs the OneAgent which does some magic lol?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it sufficient to add Forwarded header into the response at my Step 4) to say company.com for automatic injection?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 18:06:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/RUM-Automatic-Javascript-injection-setup-with-reverse-proxies/m-p/191555#M3784</guid>
      <dc:creator>bhantol2c</dc:creator>
      <dc:date>2022-07-28T18:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: RUM Automatic Javascript injection setup with reverse proxies and gateways</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/RUM-Automatic-Javascript-injection-setup-with-reverse-proxies/m-p/200473#M4006</link>
      <description>&lt;P&gt;Hi Community! This post shades light on really interesting pain journey. Would be great to catch attention someone's attention who has some helpful tips!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 13:58:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/RUM-Automatic-Javascript-injection-setup-with-reverse-proxies/m-p/200473#M4006</guid>
      <dc:creator>Michal_Gebacki</dc:creator>
      <dc:date>2022-12-14T13:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: RUM Automatic Javascript injection setup with reverse proxies and gateways</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/RUM-Automatic-Javascript-injection-setup-with-reverse-proxies/m-p/200489#M4008</link>
      <description>&lt;P&gt;1) Yes this is a permission topic. If you don't have the environment settings permissions you don't see it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the big question, it's almost magic &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; But even dynatrace can't inject a javascript into your app out of nothing &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For &lt;A href="https://www.dynatrace.com/support/help/shortlink/rum-injection#how-does-the-rum-javascript-injection-work" target="_self"&gt;automatic injection&lt;/A&gt; to work you always need a OneAgent on a system with a supported &lt;A href="https://www.dynatrace.com/support/help/technology-support#rum-auto-injection" target="_self"&gt;technology for automatic rum injection.&lt;/A&gt;&amp;nbsp;That web or app server, e.g. your nginx, then injects the javascript if an application is setup for that URL/Domain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 15:10:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/RUM-Automatic-Javascript-injection-setup-with-reverse-proxies/m-p/200489#M4008</guid>
      <dc:creator>pahofmann</dc:creator>
      <dc:date>2022-12-14T15:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: RUM Automatic Javascript injection setup with reverse proxies and gateways</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/RUM-Automatic-Javascript-injection-setup-with-reverse-proxies/m-p/200497#M4009</link>
      <description>&lt;P&gt;It turned out to be 2 things for me:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) nginx version downgrade&lt;/P&gt;&lt;P&gt;2) Setting `&lt;SPAN&gt;x-dynatrace-origin-url` to my app url configured in the detection settings.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3) Can't say if `X-Forwarded-Host` and `X-Forwarded-Path` request headers also helped but I have them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit"&gt;Yup the sad part is that it is a magic and&amp;nbsp;&lt;/FONT&gt;indeterministic IMO&lt;FONT face="inherit"&gt;.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 15:45:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/RUM-Automatic-Javascript-injection-setup-with-reverse-proxies/m-p/200497#M4009</guid>
      <dc:creator>bhantol2c</dc:creator>
      <dc:date>2022-12-14T15:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: RUM Automatic Javascript injection setup with reverse proxies and gateways</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/RUM-Automatic-Javascript-injection-setup-with-reverse-proxies/m-p/200502#M4010</link>
      <description>&lt;P&gt;1) Yes if you run &lt;EM&gt;latest&lt;/EM&gt;&amp;nbsp; you might run into issues on managed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Yes,&amp;nbsp;&lt;EM&gt;X-Forwarded-Host&amp;nbsp;&lt;/EM&gt;is one of the headers used by dynatrace to determine the original URL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd use the quote&amp;nbsp;any "Any sufficiently advanced technology is indistinguishable from magic."&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It's pretty easy, though can be quite baffling if one does not know how it works. It just looks at the HTML your web/app servers delivers and modifies it, if an application rule is present.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 16:28:17 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/RUM-Automatic-Javascript-injection-setup-with-reverse-proxies/m-p/200502#M4010</guid>
      <dc:creator>pahofmann</dc:creator>
      <dc:date>2022-12-14T16:28:17Z</dc:date>
    </item>
  </channel>
</rss>

