Background:
I have following network flow:-
1) browser →
2) F5 (company.com/myapp1) → (not in my control)
3) Apache (reverse proxy) → (not in my control)
4) istio gateway (prod.istio.company.com/group/webapp1) mesh → (can control virtual hosts/routing/headers only)
5) kubenetes pods (istio mesh) → (full control)
6) inside pods - nginx - serves static urls (full control over nginx)
URL remains same as original in the browser.
Step 4,5,6 is in kubernetes and may qualify for dynatrace instrumentation.
Dynatrace setup:
We host dynatrace (i.e. managed).
Created a Web application with full URL detection https://company.com/myapp1/
Traffic for this application is detected by the following rules:- URL starts with https://company.com/myapp1/
Problem:
When I visit myapp1 from browser I see nothing injected in there.
Then went through Tips For Troubleshooting Troubleshooting RUM Classic for web applications — Dynatrace Docs
1) It says go to Settings > Monitoring > Monitoring overview but I don’t see Settings
(is it a role issue ? rant: why don’t you guys provide a disabled menu or provide a documentation warning).
2) Other steps are to check if this qualifies:
3) What can I do if an uninstrumented component rewrites parts of the URL? What can I do if an uninstrumented component rewrites parts of the URL?
I went through this and it says I need a header X-Forwarded-Host or Forwarded header with www.company.com ? 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” ?
BIG QUESTION: How does Dynatrace actually inject the <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?
Is it sufficient to add Forwarded header into the response at my Step 4) to say company.com for automatic injection?