Retrieving metrics


Calibre provides three sources of performance data: Real User Metrics (RUM), Chrome UX Report (CrUX) and Synthetic monitoring. Each can be queried via the CLI to retrieve metrics for your pages.

Real User Metrics (RUM)#

Retrieve performance data collected from real visitors to your site.

Summary#

Display aggregate web vitals and UX ratings for a site.

Read Sites

CLI
calibre rum summary --site=calibre --json

Filter by country, device type, URL path or page grouping:

CLI with filters
calibre rum summary --site=calibre --duration=30 --country=AU --device=mobile --json
OptionDescriptionRequiredDefault
--siteA unique slug identifying each Site.Yes
--durationNumber of days to aggregate.7
--dateBinTime granularity.day
--countryFilter by country code (e.g. AU).
--deviceFilter by device type.
--pathFilter by URL path.
--pageGroupingFilter by page grouping UUID.
--jsonOutputs the results of the command in JSON format.

History#

Display RUM historical trends over time.

CLI
calibre rum history --site=calibre --duration=30 --json
OptionDescriptionRequiredDefault
--siteA unique slug identifying each Site.Yes
--durationNumber of days to aggregate.7
--dateBinTime granularity.day
--countryFilter by country code (e.g. AU).
--deviceFilter by device type.
--pathFilter by URL path.
--pageGroupingFilter by page grouping UUID.
--limitNumber of history entries to display.25
--jsonOutputs the results of the command in JSON format.

Pages#

Display a page-level breakdown of RUM data.

CLI
calibre rum pages --site=calibre --sortBy=sessionCount --json
OptionDescriptionRequiredDefault
--siteA unique slug identifying each Site.Yes
--durationNumber of days to aggregate.7
--dateBinTime granularity.day
--countryFilter by country code (e.g. AU).
--deviceFilter by device type.
--pathFilter by URL path.
--pageGroupingFilter by page grouping UUID.
--limitNumber of pages to display.25
--offsetNumber of pages to skip.0
--sortBySort pages by field.sessionCount
--jsonOutputs the results of the command in JSON format.

Chrome UX Report (CrUX)#

Retrieve field data from Google's Chrome UX Report, including Core Web Vitals assessment.

Summary#

Display origin-level CrUX performance data and Core Web Vitals assessment.

Read Sites

calibre crux summary --site=calibre --json
OptionDescriptionRequiredDefault
--siteA unique slug identifying each Site.Yes
--formFactorFilter by device type.
--jsonOutputs the results of the command in JSON format.

History#

Display CrUX historical trends for a site.

CLI
calibre crux history --site=calibre --json
OptionDescriptionRequiredDefault
--siteA unique slug identifying each Site.Yes
--formFactorFilter by device type.
--timePeriodHistory time window.six-months
--limitNumber of history entries to display per metric.25
--jsonOutputs the results of the command in JSON format.

URLs#

List all CrUX monitored URLs with their metrics and Core Web Vitals assessment.

CLI
calibre crux urls --site=calibre --json
OptionDescriptionRequiredDefault
--siteA unique slug identifying each Site.Yes
--formFactorFilter by device type.
--jsonOutputs the results of the command in JSON format.

Single URL#

Display CrUX data for a specific monitored URL.

CLI
calibre crux url <uuid> --site=calibre --json
OptionDescriptionRequiredDefault
--siteA unique slug identifying each Site.Yes
--formFactorFilter by device type.
--timePeriodHistory time window.six-months
--limitNumber of history entries to display per metric.25
--jsonOutputs the results of the command in JSON format.

Synthetic#

Retrieve metrics collected by Calibre's Synthetic monitoring infrastructure (Lighthouse-based lab tests).

Timeseries metrics#

You can query up to 6 months of reporting data per request. Use from and to parameters to specify date ranges.

Read Sites

calibre synthetic metrics --site=calibre --json --metrics=largestContentfulPaint --metrics=lighthousePerformanceScore
ParameterCLINode.js APIDescription
site--sitesiteThe site slug
from--fromfromStart date for the query (ISO 8601 format)
to--totoEnd date for the query (ISO 8601 format)
pages--pagepagesFilter by page UUID(s)
profiles--profileprofilesFilter by test profile UUID(s)
measurements--metricsmeasurementsFilter by metric name(s)

Snapshot metrics#

Retrieve all metrics from a single Snapshot.

Read Sites

calibre synthetic get-snapshot-metrics --site=calibre --snapshot=2000 --json
ParameterCLINode.js APIDescription
site--sitesiteThe site slug
snapshot--snapshotsnapshotIdThe snapshot ID

On this page