Raygun × Metabase

How to build Raygun dashboards in Metabase

Raygun is an error, crash, and real-user monitoring platform that ties failures to releases and affected customers. Metabase is where you turn those operational signals into shared, trustworthy dashboards. This guide covers two complementary paths: a lightweight MCP + CLI route that pulls live data with the Raygun MCP Server and loads a CSV into Metabase with the Metabase CLI, and a durable pipeline route that syncs Raygun rollups into a database so you can build dashboards anyone can read.

Heads up: Metabase connects to databases and warehouses — it does not ship a native Raygun connector, and a BI warehouse is the wrong home for raw telemetry. Sync aggregates, entities, and metadata — incidents, error groups, rollups, deploys — and leave the event firehose in Raygun.

How do you connect Raygun to Metabase?

Most teams combine both routes: use MCP and CLI uploads for a fast first pass, then move recurring reliability reporting to a warehouse-backed model.

1 · MCP + CLI route (AI-assisted)

Live data in, quick analysis out

Pair the Raygun MCP Server with the Metabase CLI. Use MCP for live lookups, write a scoped result to CSV, then load it into Metabase as a ready-to-query table and model.

Best for
  • Quick lookups such as "show me error inflow and resolution"
  • Loading a Raygun export into Metabase in seconds
  • Spot-checks and one-off analyses without a warehouse
Trade-offs
  • Great for exploration, not governed reliability reporting
  • Use read-only/scoped credentials wherever the MCP server supports them
  • CSV uploads are snapshots — refresh or move to the pipeline for history
2 · Pipeline route (warehouse-backed)

Durable dashboards with history

Sync Raygun rollups and metadata into a database or warehouse with a connector, custom pipeline, or API, then point Metabase at it.

Best for
  • Raygun reliability dashboards leaders depend on
  • Joining Raygun data with deploys, issues, support, or cost data
  • Long-run trends for error inflow and resolution and deployment and release quality
Trade-offs
  • You own the refresh schedule and the rollup grain
  • Sync aggregates and entities — not the raw event firehose
  • Metric definitions must be consistent across services and teams

What can you analyze from Raygun data in Metabase?

  • Error inflow and resolution — built from error groups and the related error instances, deployments, RUM sessions data your sync exposes.
  • Deployment and release quality — built from error groups and the related error instances, deployments, RUM sessions data your sync exposes.
  • Top errors by affected users — built from error groups and the related error instances, deployments, RUM sessions data your sync exposes.
  • Real-user performance (RUM) — built from error groups and the related error instances, deployments, RUM sessions data your sync exposes.
  • Application health overview — built from error groups and the related error instances, deployments, RUM sessions data your sync exposes.

Which Raygun dashboards should you build in Metabase?

For: On-call engineers, EMs

Error inflow and resolution

Whether new errors are outrunning the team's fixes.

  • New error groups per week (line)
  • New vs. resolved error groups (combo)
  • Regressed error groups (number + trend)
  • Open error groups by age bucket (table)
For: Eng leads, release owners

Release quality

How each release changes the error picture.

  • Error rate by release (bar)
  • Crash-free sessions or users by release (line)
  • New error groups introduced per release (table)
  • Time from first-seen to resolved (line)
For: PMs, support liaison

Impact and triage

Which errors hurt the most users right now.

  • Top error groups by affected users (table)
  • Unassigned error groups (number)
  • Errors by service or area (bar)
  • Stale unresolved groups older than 30 days (table)
For: Leadership

Reliability trend

The long-run error and recovery picture.

  • Error events vs. traffic volume (combo)
  • Median time to resolve error groups (line)
  • Incidents linked to error spikes (bar)
  • Error budget consumption (line)

How do you use the Raygun MCP Server with the Metabase CLI?

Pair the Raygun MCP Server with the Metabase CLI for fast, hands-on analysis. MCP is useful for scoped lookups and summarized exports; the Metabase CLI's upload command loads CSV data into Metabase and creates a ready-to-query table and model.

Example workflow

  • Ask the MCP server for the top error groups by affected users this week.
  • Export the result as CSV, keeping stable IDs, services, environments, severities, and timestamps.
  • Run mb upload csv to load it into Metabase as a table and model, then build questions and dashboards on top.

Be honest about the limits

  • MCP lookups are excellent for exploration, not scheduled reporting.
  • A CSV upload is a snapshot; refresh it with mb upload replace or move to the pipeline for real history.
  • Release tags and first-seen/last-seen timestamps are required for regression and error-rate trends.
  • mb upload csv needs an uploads database configured under Admin → Settings → Uploads.

How do you set up Raygun MCP and the Metabase CLI?

Raygun MCP Serverofficial

Transport
Hosted remote MCP via Streamable HTTP
Auth
Raygun personal access token (Bearer header)
Best for
Live scoped lookup and export

Metabase CLIofficial

Install
npm install -g @metabase/cli
Auth
mb auth login
Load data
mb upload csv --file data.csv
Requires
An uploads database (Admin → Settings → Uploads)
MCPExample MCP client config
{
  "mcpServers": {
    "raygun": {
      "url": "https://api.raygun.com/v3/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_PAT_TOKEN"
      }
    }
  }
}

The PAT grants broad account access — keep it out of version control and scope analysis to read-style tools.

TerminalLoad a Raygun CSV with the Metabase CLI
# Install the Metabase CLI
npm install -g @metabase/cli

# Log in (opens your browser; requires Metabase v62+)
mb auth login --url https://your-metabase.example.com

# Load a error-groups export — creates a table AND a model
mb upload csv --file raygun-error-groups.csv --collection root

# Refresh that same table later from a new export
mb upload replace <table-id> --file raygun-error-groups.csv

Can you generate a Raygun dashboard with AI?

Yes. Use the prompt below with any assistant that can run the Raygun MCP Server and the Metabase CLI. It works end to end: if Raygun tables already exist in Metabase it analyzes those; otherwise it pulls scoped, summarized data over MCP, loads it with mb upload csv, then builds the dashboard and caveats any metric that needs missing history.

Prompt for creating a Raygun Error Monitoring Overview dashboard
Create a polished Metabase dashboard for Raygun error monitoring analytics.
Work end to end: get the data into Metabase if it isn't there yet, then build.

Goal: Help engineering and operations leaders understand error inflow, release quality, user impact, and resolution speed from Raygun data.

Step 1 — Find or load the data:
- First, check what already exists in Metabase (search for raygun tables and
  models). If durable Raygun data is already present — synced from a warehouse
  or uploaded earlier — use it and skip to Step 2.
- If nothing is there, pull a scoped, summarized export with the Raygun MCP Server:
  error groups, plus error instances, deployments, RUM sessions.
  Prefer aggregated or rollup views over raw events. Write each result to a CSV,
  then load it with the Metabase CLI — run "mb upload csv --file <export>.csv" so
  each upload creates a table and a ready-to-query model. Use "mb upload replace
  <table-id> --file <export>.csv" to refresh an existing table instead of creating
  duplicates.

Step 2 — Inspect before querying:
Do not assume exact table or column names. Inspect available fields, services,
environments, timestamps, and whether rollups or history exist before creating
duration or trend cards.

Important:
- Build on whatever data is present; don't claim Metabase connects natively to
  Raygun — it reads a database or CLI-uploaded tables.
- Never try to load the raw event firehose into Metabase; use rollups, entity
  tables, and incident- or group-grain data.
- Only compute durations (MTTA, MTTR, time-to-resolve) when the required
  timestamps exist.
- Exclude test, staging, or muted objects from headline reliability cards, and
  segment by environment where the field exists.
- A single CSV is a point-in-time snapshot: only build trend cards if there is a
  usable date column or multiple periods have been uploaded.

Dashboard title: Raygun Error Monitoring Overview

Sections:
1. Executive summary: Open error groups; New groups last 7 days; Regressions;
   Affected users last 7 days; Median time to resolve.
2. Inflow: New vs resolved error groups by week; error events by service.
3. Release quality: Error rate by release; new groups per release; crash-free rate
   if session data exists.
4. Impact: Top groups by affected users; unassigned groups; stale open groups.
5. Resolution: Time from first-seen to resolved; reopened/regressed groups.

Filters: Date range, Service, Environment, Severity, Team, Status.

Output: Build the dashboard if you have permission; otherwise provide the exact
questions, SQL, model definitions, and layout. Include caveats for any metric
that cannot be calculated from the available data.

How do you sync Raygun data into a database or warehouse?

For dashboards that need history and reliability, land Raygun rollups and metadata in a database first, then connect Metabase to that database.

Connector options

  • Managed ETL — use a connector when one covers the objects you need.
  • Custom pipeline — use the Raygun Public API for control over rollup grain, fields, and refresh cadence.
  • MCP + CSV — use this for quick exploration and one-off slices.

No managed connector exists — script the Raygun public API for error groups, instances, deployments, and RUM summaries, or use webhooks for push-based events.

Notes

  • Decide the rollup grain first (hourly or daily per service/environment) — it drives warehouse cost and every trend card.
  • Land raw entity tables first, then build clean Metabase models on top.
  • Normalize service, release, environment, severity, first-seen, and last-seen fields.

How should you model Raygun data in Metabase?

Core tables

TableGrainKey columns
raygun_error_groupsone row per error groupid, application_id, title, service, status, first_seen_at, resolved_at
raygun_error_rollupsone row per group per dayerror_group_id, window_start, environment, release_id, event_count, affected_users
raygun_deploymentsone row per deploymentid, application_id, version, deployed_at, email

Modeling advice

  • Build a clean error_rollups model with common columns across tools, so multi-source dashboards don't fork definitions.
  • Separate entity tables (services, monitors, policies) from time-series rollups and event-grain tables.
  • Exclude test, staging, and muted objects from headline reliability metrics; keep environment as an explicit column.
  • Use stable IDs for service, team, and incident joins; display names change.

Which Raygun metrics should you track in Metabase?

MetricDefinitionNotes
Error rateFailed or error events divided by total events or requests.Pin the denominator: requests, sessions, or users.
Incident countQualifying incidents per period, segmented by severity.Define what counts as an incident once.
MTTRMedian time from failure start to service restored.Use median and p90, not the mean.
Change failure rateDeployments causing a failure divided by all deployments.Join releases to error spikes to attribute failures.

What SQL powers Raygun dashboards in Metabase?

These assume a cleaned analytical model in a warehouse (PostgreSQL dialect). Adjust table and column names to match your pipeline.

New vs. resolved error groups by weekPostgreSQL

Whether fixes are keeping up with inflow.

SELECT
  date_trunc('week', first_seen_at) AS week,
  COUNT(*) AS new_error_groups,
  COUNT(*) FILTER (WHERE resolved_at IS NOT NULL) AS since_resolved
FROM error_groups
WHERE environment = 'production'
GROUP BY 1
ORDER BY 1;
Error rate by releasePostgreSQL

Release quality from rollups joined to release metadata.

SELECT
  r.version AS release,
  SUM(e.event_count) AS error_events,
  COUNT(DISTINCT e.error_group_id) AS distinct_groups,
  ROUND(
    1.0 * SUM(e.event_count) / NULLIF(MAX(r.sessions), 0), 4
  ) AS errors_per_session
FROM error_rollups e
JOIN releases r ON r.id = e.release_id
WHERE e.environment = 'production'
GROUP BY r.version
ORDER BY MIN(r.released_at) DESC;
Top open error groups by affected usersPostgreSQL

The triage table: impact first.

SELECT
  g.title,
  g.service,
  SUM(e.affected_users) AS affected_users,
  SUM(e.event_count) AS events
FROM error_rollups e
JOIN error_groups g ON g.id = e.error_group_id
WHERE e.window_start >= CURRENT_DATE - INTERVAL '30 days'
  AND g.resolved_at IS NULL
GROUP BY g.title, g.service
ORDER BY affected_users DESC
LIMIT 20;

What are common mistakes when analyzing Raygun in Metabase?

Syncing the raw event firehose into the warehouse.→ Land rollups, entities, and incident- or group-grain tables. Raw telemetry belongs in Raygun; the warehouse is for trends and joins.
Trending raw error counts without a traffic denominator.→ More users means more errors. Report error rate against requests or sessions, or caveat volume-only cards.
Mixing environments in headline numbers.→ Keep production separate from staging and development; one noisy test environment can drown the signal.
Building dashboards from live MCP lookups only.→ MCP is useful for exploration; durable dashboards need a database-backed model with history.

Related analytics

Related dashboards

Related integrations

FAQ

Does Metabase connect natively to Raygun?
No. Metabase reads databases and warehouses. Sync Raygun rollups and metadata into a database first, or upload a CSV with the Metabase CLI, then build Metabase models and dashboards on top.
Should Metabase replace Raygun?
No — they answer different questions. Raygun is built for real-time triage and deep debugging. Metabase is where you build governed, shareable reporting on top of the same signals, and join them with deploys, issues, support, and business data.
Should I sync every raw Raygun event into my warehouse?
No. Sync error groups, rollup counts by day/service/release, and release metadata. The raw event firehose is expensive to store and unnecessary for trend reporting — keep event-level detail in the source tool and drill into it there.
Can I compute crash-free or error-rate metrics in Metabase?
Yes, if you sync a denominator. Error rate needs total requests or sessions alongside error counts. Without a denominator you can still trend raw error volume, but caveat that traffic growth will distort it.