Skip to main content

Overview

Cloudflare RUM (Real User Monitoring) provides visibility into how real users experience your website. Collect performance metrics, monitor Core Web Vitals, and analyze user behavior.

Initialize the client

Site info

Manage RUM sites.

Create a site

Create a new RUM site configuration.
string
required
Account identifier
string
required
Hostname to monitor
string
Associated zone identifier
string
Site identifier
string
Monitored hostname
string
When the site was created

Update a site

Update an existing RUM site.

List sites

List all RUM sites in an account.

Get a site

Get details of a specific RUM site.

Delete a site

Delete a RUM site.

Rules

Manage RUM sampling and collection rules.

Create a rule

Create a new RUM rule.
string
required
Account identifier
string
required
Site identifier

Update a rule

Update an existing RUM rule.

List rules

List all RUM rules.

Delete a rule

Delete a RUM rule.

Bulk create rules

Create multiple RUM rules at once.

Types

Site

RUM site configuration.
string
Site identifier
string
Monitored hostname
string
Associated zone ID
boolean
Whether RUM is auto-installed
string
Creation timestamp

RUMRule

RUM sampling and collection rule.
string
Rule identifier
string
Associated site ID
boolean
Whether the rule is active
number
Rule priority

Use cases

RUM is useful for:
  • Performance monitoring: Track Core Web Vitals (LCP, FID, CLS)
  • User experience: Understand real-world performance across devices and locations
  • Debugging: Identify slow pages and performance bottlenecks
  • Business insights: Correlate performance with business metrics
  • Optimization: Make data-driven decisions to improve site speed