Pre-requisites for Mobile Real User Monitoring using eG Enterprise
Before attempting to monitor real user transactions to your mobile application, ensure that the following are in place:
-
At least one mobile application that receives user traffic, built with any of the following technologies:
-
Android v10 and above (Apps built using JAVA & Kotlin)
-
iOS v12 and above (Apps built using Swift and Objective-C)
-
Hybrid frameworks such as:
-
Flutter
-
React Native (greater than v0.6)
-
Cordova
-
Capacitor
-
-
-
At least one Mobile RUM collector (beacon endpoint), reachable from the device or emulator — not only from the developer laptop. Once installed, make a note of the collector URL - i.e., http(s)://<CollectorHost>:<CollectorPort>. If a firewall separtes the devices from the collector, then make sure that the firewall is configured to allow outbound TCP from devices to collector's host:port.
-
If the mobile RUM collector is NOT SSL-enabled, then do the following:
-
Android may block cleartext HTTP traffic unless the app allows it. So, if Android disallows such traffic, then you may have to configure its network security configuration (which may be available in newer versions of Android) to allow this traffic. Alternatively, you can enable cleartext traffic for the application.
-
iOS App Transport Security (ATS) blocks cleartext HTTP by default. Hence, you will have to allow an ATS exception for the collector host. Alternatively, you can switch to HTTPS.
-
-
If the mobile RUM collector is SSL-enabled, then note that Android 7+ rejects certificates obtained from unauthorized CAs / self-signed certificates unless the app trusts that certificate. It is therefore recommended that you use a publicly trusted certificate to SSL-enable the collector.
-
At least one eG remote agent (operating on a Windows/Linux host) is required, which can collect from the Mobile RUM collector and report to the eG Manager. If a firewall separates the remote agent from the collector and the manager, then make sure you configure the firewall to:
-
Allow the eG remote agent to pull from the collector's host:port
-
Allow the eG remote agent to send data to the manager's host:port
-
-
An eG database sized for the expected Mobile RUM load.
-
Know who will generate traffic and how they reach the collector:
-
Intranet devices on the same LAN as the collector, (OR);
-
Internet / cellular users who must reach a collector that is published externally
-
-
Supported Devices:
-
Physical iPhone/iPad
-
Android phone/tablet
-
Matching Simulator/Emulator
-
-
Supported Build Machines:
-
For iOS:
macOS with Xcode (and CocoaPods if the app already uses it)
-
For Android:
Android Studio, Android SDK, and Gradle as required by the app
-
-
By default, eG Enterprise does not support Real User Monitoring for mobile applications. To enable this capability, do the following:
-
Login to the eG manager host.
-
Edit the eg_discover.ini file in the <EG_INSTALL_DIR>\manager\config directory (on Windows; on Linux, this will be the /opt/egurkha/manager/config directory).
-
Include the following entries within:
[MobileRUM]
Format:name=serverType,hostIp,hostName,portNo,isPassive
-
Save the file.
-
-
Make sure 'logging' is enabled for the eG RUM Collector. For this, do the following:
-
Login to the system hosting the eG RUM Collector.
-
Edit the mobilerum.properties file in the <EG_RUM_COLLECTOR_INSTALL_DIR>\manag\tomcat\webapps\rumcollector\WEB-INF\lib\ directory (on Windows; on non-Windows, this will be the /opt/egurkha/manager/tomcat/webapps/rumcollector/WEB-INF/lib/ directory);
-
Append the following entries in the file:
enableLogs=true
MobileInstrumentation=true
-
Finally, save the file.
-
The eG Mobile RUM Checklist
Before you set out to perform Real User Monitoring using eG Enterprise, its best to ensure that all pre-requisites are fulfilled. For that, it is recommended that you use the checklist below:
|
S. No. |
What is to be checked? |
|
1. |
Architecture / workflow of the mobile app (screens, APIs, WebView vs native) |
|
2. |
The underlying technology of the target app |
|
3. |
Target OS versions (iOS / Android) and whether physical devices or emulators will be used |
|
4. |
Build machine used |
|
5. |
Whether mobile RUM collector is running, and if so, what is its URL - i.e., whether HTTP/S, collector host, and collector port. |
|
6. |
Whether the device or emulator can reach the collector (same network, firewall; no localhost on a physical device) |
|
7. |
If the collector is HTTP, then check if Android cleartext and iOS ATS are understood and will be allowed; |
|
8. |
If collector is HTTPS, check if it uses a self-signed certificate, and if device trust / app network security is planned |
|
9. |
Verify if an eG remote agent has been assigned to collect from this Mobile RUM collector, and also check if this agent can reach collector and eG manager |
|
10. |
Check if the eG database sized for the expected Mobile RUM load |
|
11. |
Check who the users are (intranet vs internet) and whether they can route to the collector |