Problem
When the RUM breaks the monitored web application, we tend to turn off the whole RUM Application / Process Group to save the end-user from misery. Then, it might be a challenge to convince ourselves to enable it back for troubleshooting purposes.
It’s possible with single client IP(s) exclusion/inclusion enabled. Still, the real client IP addresses are often not configured in Dynatrace and represent a proxy or Load balancer IP.
The idea
The idea is to restrict the Dynatrace RUM to be enabled to a “futuristic”, unreal client IP and overcome this restriction in a single browser instance where we want to play with RUM to troubleshoot a breaking scenario. For example, the 8.8.8.8 IP address is a Google DNS, so there is no chance that any of the clients monitored by Dynatrace can get it. Let’s configure Dynatrace to enable RUM only for this IP and then overcome this restriction in two possible Scenarios:
- modifying the
User-Agentheader in the browser
or - sending a custom HTTP header with a fake client IP
Requirements
-
Scenario #1: the monitored website is not sensitive to modified
User-Agentheader (scenario #1), but this requirement is avoidable - see the note. -
Scenario #2: the network must not remove custom HTTP headers,
-
Scenario #2: we must install ModHeader browser extension,
Configuration and Usage
Scenario #1 - Modifying the User-Agent header in the browser
If using the Browser Extension for RUM and/or using custom HTTP headers is/are not possible, there is another way:
-
Go to problematic RUM Application → edit
Settings→Capturing→Exclusions→IP address exclusions, -
Add the fake client IP and flip the
These are the only IP addresses that should be monitoredflag ON: -
In the browser, configure
dtHealthCheckIgnoreRestrictionsUser-Agent:
The RUM injection will happen for this very browser; nevertheless, we send our real client IP that is different than the configured 8.8.8.8 .
Note
This may not work if the web application is sensitive to non-standard User-Agents. In these cases, most likely, the page won’t load.
If that’s the case, contact Support, refer to this post, and ask for “configuring restriction ignoring” for User-Agent that is acceptable for the monitored website.
Alternatively you can use below Scenario #2.
Scenario #2 - Sending a custom HTTP header with a fake client IP
Configure client web browser
-
Install ModHeader browser extension in your selected browser,
-
Configure the name of the custom HTTP request header - make sure the name is unique, and the value is != other client IPs. The
8.8.8.8might be a good choice.Example configuration:
Note: The checkbox next to the name of the custom header disables/enables the header presence.
-
Make sure the next request contains the header in HTTP:
Configure Dynatrace
-
Go to
Settings→Web and mobile monitoring→IP determinationNote: Ensure the created entry is at the top of the list.
-
Go to the problematic RUM Application → edit
Settings→Capturing→Exclusions→IP address exclusions, -
Add the fake IP configured previously and flip the
These are the only IP addresses that should be monitoredflag ON:
What’s next
If this article did not help, please open a support ticket, mention that this article was used and provide the following in the ticket:
- link to related RUM application.




