02 Apr 2025 10:51 PM
We are currently working on automating the enabling and disabling of Real User Monitoring (RUM) for both web and mobile applications in Dynatrace during scheduled maintenance windows.
For web applications, we successfully toggle RUM using the "realUserMonitoringEnabled" parameter in the API. However, we have encountered a challenge with mobile applications:
The mobile application API configuration does not have a parameter similar to "realUserMonitoringEnabled" to disable RUM.
The "costControlUserSessionPercentage" setting does not allow a value of 0, meaning we cannot fully stop RUM for mobile apps during maintenance.
Could you advise on the correct method to completely disable/enable RUM for mobile applications during our maintenance periods? Is there an undocumented API parameter or another recommended approach?
Solved! Go to Solution.
03 Apr 2025 06:37 AM - edited 03 Apr 2025 07:42 AM
Hi!
in Dynatrace you can configure Maintenance WIndows, does this not cover your use-case, or why do you want to stop monitoring during those?
03 Apr 2025 07:39 AM
Hello @Patrick_H
Our goal is to conserve the DEM license.
We need to optimize our license usage as much as possible across:
Synthetic monitoring (achieved through MW)
Web RUM (managed via API configuration scripts using the parameter "realUserMonitoringEnabled")
Mobile RUM (no "realUserMonitoringEnabled" parameter found)
03 Apr 2025 09:32 AM - edited 03 Apr 2025 09:33 AM
Hi, you can use the Settings API for that.
In this case, the schema is builtin:rum.mobile.enablement and you want to modify the "enabled" flag in the "rum" object.