How to build Rollbar dashboards in Metabase
Rollbar is an error monitoring platform that tracks exceptions, deploys, and affected users across applications in real time. 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 Rollbar MCP server and loads a CSV into Metabase with the Metabase CLI, and a durable pipeline route that syncs Rollbar rollups into a database so you can build dashboards anyone can read.
How do you connect Rollbar 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.
Live data in, quick analysis out
Pair the Rollbar 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.
- Quick lookups such as "show me error inflow and resolution"
- Loading a Rollbar export into Metabase in seconds
- Spot-checks and one-off analyses without a warehouse
- 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
Durable dashboards with history
Sync Rollbar rollups and metadata into a database or warehouse with a connector, custom pipeline, or API, then point Metabase at it.
- Rollbar reliability dashboards leaders depend on
- Joining Rollbar data with deploys, issues, support, or cost data
- Long-run trends for error inflow and resolution and deploy and version quality
- 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 Rollbar data in Metabase?
- Error inflow and resolution — built from error groups (items) and the related occurrence rollups, deploys, projects data your sync exposes.
- Deploy and version quality — built from error groups (items) and the related occurrence rollups, deploys, projects data your sync exposes.
- Top items by affected users — built from error groups (items) and the related occurrence rollups, deploys, projects data your sync exposes.
- Error rate by project — built from error groups (items) and the related occurrence rollups, deploys, projects data your sync exposes.
- New vs. reactivated errors — built from error groups (items) and the related occurrence rollups, deploys, projects data your sync exposes.
Which Rollbar dashboards should you build in Metabase?
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)
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)
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)
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 Rollbar MCP server with the Metabase CLI?
Pair the Rollbar 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 (items) by affected users this week.
- Export the result as CSV, keeping stable IDs, services, environments, severities, and timestamps.
- Run
mb upload csvto 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 replaceor 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 csvneeds an uploads database configured under Admin → Settings → Uploads.
How do you set up Rollbar MCP and the Metabase CLI?
Rollbar MCP serverofficial
- Transport
- Local server (npx) over stdio
- Auth
- Rollbar project access token (ROLLBAR_ACCESS_TOKEN)
- 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)
{
"mcpServers": {
"rollbar": {
"command": "npx",
"args": ["@rollbar/mcp-server@latest"],
"env": {
"ROLLBAR_ACCESS_TOKEN": "your-project-access-token"
}
}
}
}The official package is @rollbar/mcp-server — an unofficial community package with a similar name circulates on npm, so check the scope. Use a read-scope project token for analysis.
# 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-(items) export — creates a table AND a model
mb upload csv --file rollbar-error-groups-(items).csv --collection root
# Refresh that same table later from a new export
mb upload replace <table-id> --file rollbar-error-groups-(items).csvCan you generate a Rollbar dashboard with AI?
Yes. Use the prompt below with any assistant that can run the Rollbar MCP server and the Metabase CLI. It works end to end: if Rollbar 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.
Create a polished Metabase dashboard for Rollbar 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 Rollbar data.
Step 1 — Find or load the data:
- First, check what already exists in Metabase (search for rollbar tables and
models). If durable Rollbar 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 Rollbar MCP server:
error groups (items), plus occurrence rollups, deploys, projects.
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
Rollbar — 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: Rollbar 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 Rollbar data into a database or warehouse?
For dashboards that need history and reliability, land Rollbar 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 Rollbar RQL for control over rollup grain, fields, and refresh cadence.
- MCP + CSV — use this for quick exploration and one-off slices.
Sync items, occurrences, and deploys with the Airbyte Rollbar source (marketplace), or run RQL queries — results export as CSV — for scripted rollups.
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 Rollbar data in Metabase?
Core tables
| Table | Grain | Key columns |
|---|---|---|
rollbar_error_groups | one row per item (error group) | id, project_id, title, level, status, first_seen_at, resolved_at |
rollbar_error_rollups | one row per item per day per environment | error_group_id, window_start, environment, version, event_count, affected_users |
rollbar_deploys | one row per deploy | id, project_id, revision, environment, deployed_at |
Modeling advice
- Build a clean
error_rollupsmodel 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 Rollbar metrics should you track in Metabase?
| Metric | Definition | Notes |
|---|---|---|
| Error rate | Failed or error events divided by total events or requests. | Pin the denominator: requests, sessions, or users. |
| Incident count | Qualifying incidents per period, segmented by severity. | Define what counts as an incident once. |
| MTTR | Median time from failure start to service restored. | Use median and p90, not the mean. |
| Change failure rate | Deployments causing a failure divided by all deployments. | Join releases to error spikes to attribute failures. |
What SQL powers Rollbar dashboards in Metabase?
These assume a cleaned analytical model in a warehouse (PostgreSQL dialect). Adjust table and column names to match your pipeline.
Whether fixes are keeping up with inflow.
-- New groups bucket by first_seen_at; resolved groups bucket by resolved_at.
WITH new_groups AS (
SELECT
date_trunc('week', first_seen_at) AS week,
COUNT(*) AS new_error_groups
FROM error_groups
WHERE environment = 'production'
GROUP BY 1
),
resolved_groups AS (
SELECT
date_trunc('week', resolved_at) AS week,
COUNT(*) AS resolved_error_groups
FROM error_groups
WHERE environment = 'production'
AND resolved_at IS NOT NULL
GROUP BY 1
)
SELECT
COALESCE(n.week, r.week) AS week,
COALESCE(n.new_error_groups, 0) AS new_error_groups,
COALESCE(r.resolved_error_groups, 0) AS resolved_error_groups
FROM new_groups n
FULL OUTER JOIN resolved_groups r ON r.week = n.week
ORDER BY 1;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;The triage table: peak daily reach first (not a summed unique count).
SELECT
g.title,
g.service,
-- affected_users is per daily window; MAX is peak daily reach, not a unique sum.
MAX(e.affected_users) AS peak_daily_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 peak_daily_affected_users DESC
LIMIT 20;