17 Aug 2021 03:37 PM
Hi, I am setting up real user monitoring for one of my application using agentless approach and for best performance I am using "Inline Code" as my injection format from listed here - https://www.dynatrace.com/support/help/shortlink/rum-injection#anchor_manual-insertion
Now "Inline code" method requires the JS code to be updated manually everytime a new version is available. So I am trying to use Rest API to get the latest version without updating it manually. I've created the token and assigned the relevant permissions RumJavaScriptTagManagement. I have 2 questions -
Please let me know if anyone can advice.
Best Regards,
Shashank
Solved! Go to Solution.
17 Aug 2021 06:31 PM
Hello,
To use this form of Agentless Real User Monitoring, you need to insert the API URL endpoint provided in your screenshot, with an applicable API token, into the build script of your application. This will then pull the latest version of the JS tag necessary for RUM.
Being that you are on Managed, this requires one of two scenarios:
1. A public IP with a valid SSL certificate on Cluster ActiveGate
2. A public facing load balancer or proxy in front of the Cluster ActiveGate, to then forward the request internally.
More information on this deployment models, along with diagrams, can be found here: https://www.dynatrace.com/support/help/shortlink/managed-deployment-scenarios#scenario-2-pure-dynatr...
Hope this helps!
-Ryan
18 Aug 2021 01:13 AM - edited 18 Aug 2021 01:14 AM
Hi @ryan_ott Thank you very much for your response. We do have this set up in our environment. 2 Activate gates with a Load balancer in front and 2 managed nodes to send the traffic to. A public IP with a valid SSL certificate on Cluster ActiveGate. But when i try to retrieve the snippet by going into the application what i see is link of my Dynatrace managed which is https://dynatrace-managed.com/e/XXXXXX-3cefefea6-drergfr-XXXX-XXXX/api/v1/rum/jsInlineScript/APPLICA...
My load balancer with a public IP has a different domain which we call it as dtgate.XXX.co.uk but it is not showing up as you can see in the above screenshot.
Do i need to modify the URL generated and change the domain from managed to the load balancer and then use the same in the build script? Will that work? Something like this -