Viewing Remote Session Metrics
Understanding the performance of remote access sessions helps you identify issues and improve the reliability and performance of remote access connections. You can view metrics for successful and failed remote sessions using services on the RemoteAccessSubsystem of the RAE.
To retrieve the session metrics manually, perform the following steps:
1. In ThingWorx Composer, click Browse > Subsystems.
2. Select the RemoteAccessSubsystem, then open the Services tab.
3. Execute one of the following services, depending on the metric that you want to view.
a. GetTotalSessionsCount — Returns the number of total sessions on the server.
b. GetSuccessfulSessionsCount—Returns the number of successful sessions on the server. This includes sessions that are terminated by the user or the agent or time out because of inactivity.
c. GetFailedSessionsCount—Returns the number of failed sessions on the server. This includes sessions that end unexpectedly because of errors or are never started because of connection issues or access restrictions.
Configuring the Time to Store Session Metrics
Session metrics are stored in the RemoteSessionsMetrics Data Table. ThingWorx data tables can store up to 100000 rows of data, which limits the number of metrics that you can store at a time. For more information, see Sizing Limits of Data Tables in the ThingWorx Platform help center. By default, RAE is configured to keep session metrics for 30 days. To specify how long to keep the session metrics, perform the following steps:
1. In ThingWorx Composer, click Browse > Subsystems.
2. Select the RemoteAccessSubsystem, then open the Configuration tab.
3. Under the Time to keep metrics data in Days option, specify a value between 30 and 365.
4. Click Save.
The changes are applied to the subsystem. Any metrics that are older than the specified number of days is automatically deleted when the PurgeRemoteSessionsMetricsScheduler runs. For more information, see PurgeRemoteSessionsMetricsScheduler Schedule Thing.
Was this helpful?