Skip to content

RUM View

The RUM (Real User Monitoring) view collects and displays frontend performance data from your web application. It tracks Core Web Vitals, page-level performance, JavaScript errors, and user sessions.

To send RUM data to CloudMock, install the @cloudmock/rum SDK in your frontend application:

import { init } from '@cloudmock/rum';
init({
endpoint: 'http://localhost:4599/api/rum/events',
appName: 'my-app',
});

The SDK captures web vitals, page loads, JS errors, and session data automatically, then sends events to the CloudMock admin API.

Select the observation window using the time selector in the header: 15m, 30m, 1h, or 2h. All tabs share the same time range. Data refreshes automatically every 10 seconds.

The Vitals tab shows an overview of Core Web Vitals and related metrics:

A composite score (0-100) computed from all vitals, color-coded:

  • Green (75+) — Good user experience.
  • Yellow (50-74) — Needs improvement.
  • Red (< 50) — Poor experience.

The total event count is shown below the score.

Each vital is displayed as a card showing:

VitalFull NameUnitGood Threshold
LCPLargest Contentful Paintms< 2500ms
FIDFirst Input Delayms< 100ms
CLSCumulative Layout Shiftunitless< 0.1
TTFBTime to First Bytems< 800ms
FCPFirst Contentful Paintms< 1800ms

Each card shows the P75 value, a rating (good/needs-improvement/poor) with color coding, and a breakdown of how many measurements fell into each category.

The Pages tab shows per-route performance data:

ColumnDescription
RouteThe page route or URL path
Avg LoadAverage page load time in milliseconds
P75 LCP75th percentile Largest Contentful Paint
Avg CLSAverage Cumulative Layout Shift
SamplesNumber of page view events in the time window

The Errors tab shows JavaScript errors grouped by fingerprint (deduplicated stack trace):

ColumnDescription
CountNumber of times this error occurred
MessageThe error message
SessionsNumber of unique sessions affected

Click an error to expand its sample stack trace.

The Sessions tab lists individual user sessions:

ColumnDescription
SessionTruncated session ID
PagesNumber of pages viewed in the session
ErrorsNumber of JS errors encountered (highlighted if > 0)
DurationSession length in seconds

When no RUM events have been received, the Vitals tab displays the SDK installation instructions with a code snippet.

MethodPathDescription
GET/api/rum/vitals?minutes=NWeb vitals overview with scores and breakdowns
GET/api/rum/pages?minutes=NPer-route page performance data
GET/api/rum/errors?minutes=N&limit=50Grouped JS errors with stack traces
GET/api/rum/sessions?minutes=N&limit=50Session summaries with page and error counts
POST/api/rum/eventsIngest RUM events from the SDK