How do I enable real user monitoring?

Real user monitoring is automatically enabled for all detected applications and all applications are detected by default—so no setup is necessary.

In rare circumstances, the Dynatrace JavaScript tag that is injected into each application page can have an adverse impact on application functionality. For this reason, following installation of Dynatrace OneAgent confirm that your application's pages still render properly. If some of your application's pages appear to be corrupted, disable monitoring and contact us at

Dynatrace Answers

.

Why don't I see my applications or monitoring data?

If you don't see any of your applications or real user monitoring data in Dynatrace, the first thing you need to do is confirm that there is traffic in your web front-end processes (web server, Java, Node.js, etc). To do this, interact with one of your applications' pages to generate some traffic.

Once you're certain that your web front-end processes have traffic on them, check to see if the JavaScript tag has been injected into your application pages' HTML. To do this, view the source of one of your application's pages and look for the string /ruxitagentjs. If you see this string than you know that the JavaScript tag has been correctly injected. If you don’t see the string /ruxitagentjs in your HTML source code, then it may be that the web front-end process of your application is not monitored.

To confirm that your application's web front-end process is monitored, go to Settings > Monitoring overview > Processes and search for the process. All monitored processes are listed on this page.

In rare circumstances the JavaScript tag injection may not work because of poorly formatted HTML in the application. If the JavaScript tag has been correctly inserted into the HTML, but you still don't see real user monitoring data such as application metrics, it may be that a firewall is blocking the signal that is sent by the DynatraceJavaScript tag back to your server process.

Can I test that the monitor signal passes through my infrastructure?

To confirm that the monitor signal is correctly passing through your infrastructure, you must call the URL form <your hostname>/rx_<Your Dynatrace Environment ID>?$.

To get your environment's URL for the monitor-signal check

  1. Open your browser's developer tools and look for an XHR Post request that begins with rb_<ID> (for example, https://www.mydomain.com/rb_hxg123354).
  2. Copy the URL of this request and append the query string ?type=check (for example, https://www.mydomain.com/rb_hxg123354?type=check).
  3. Hit Enter to execute the URL in your browser.

You should receive a response with status 200 and some text like "state=ok&agentType=nginx&agentVersion=1.121.170.20170703-101146". As long as the string state=ok appears (along with other text and HTTP status), then you know that the beacon signal is passing through your servers and you should be receiving real user monitoring data.

If these suggestions don't resolve your issue, please post your question to Dynatrace Answers where one of our product gurus can assist you.