Sentry × Metabase

How to build Sentry dashboards in Metabase

Sentry is an error and performance monitoring platform that tracks exceptions, releases, and user impact across your applications. 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 Sentry MCP and loads a CSV into Metabase with the Metabase CLI, and a durable pipeline route that syncs Sentry 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 Sentry 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 Sentry.

How do you connect Sentry 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 Sentry MCP 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 Sentry 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 Sentry rollups and metadata into a database or warehouse with a connector, custom pipeline, or API, then point Metabase at it.

Best for
  • Sentry reliability dashboards leaders depend on
  • Joining Sentry data with deploys, issues, support, or cost data
  • Long-run trends for error inflow and resolution and release quality and regressions
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 Sentry data in Metabase?

  • Error inflow and resolution — built from error groups (issues) and the related event rollups, releases, projects data your sync exposes.
  • Release quality and regressions — built from error groups (issues) and the related event rollups, releases, projects data your sync exposes.
  • Top issues by affected users — built from error groups (issues) and the related event rollups, releases, projects data your sync exposes.
  • Reliability trend and error budget — built from error groups (issues) and the related event rollups, releases, projects data your sync exposes.
  • Project error hygiene — built from error groups (issues) and the related event rollups, releases, projects data your sync exposes.

Which Sentry 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 Sentry MCP with the Metabase CLI?

Pair the Sentry MCP 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 (issues) 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 Sentry MCP and the Metabase CLI?

Sentry MCPofficial

Transport
Hosted remote MCP via Streamable HTTP
Auth
OAuth through Sentry
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": {
    "sentry": {
      "url": "https://mcp.sentry.dev/mcp"
    }
  }
}

Self-hosted Sentry? Run the local server instead: npx @sentry/mcp-server@latest with a SENTRY_ACCESS_TOKEN (and --host for your instance).

TerminalLoad a Sentry 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-(issues) export — creates a table AND a model
mb upload csv --file sentry-error-groups-(issues).csv --collection root

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

Can you generate a Sentry dashboard with AI?

Yes. Use the prompt below with any assistant that can run the Sentry MCP and the Metabase CLI. It works end to end: if Sentry 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 Sentry Error Monitoring Overview dashboard
Create a polished Metabase dashboard for Sentry 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 Sentry data.

Step 1 — Find or load the data:
- First, check what already exists in Metabase (search for sentry tables and
  models). If durable Sentry 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 Sentry MCP:
  error groups (issues), plus event rollups, releases, 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
  Sentry — 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: Sentry 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 Sentry data into a database or warehouse?

For dashboards that need history and reliability, land Sentry 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 Sentry Web API for control over rollup grain, fields, and refresh cadence.
  • MCP + CSV — use this for quick exploration and one-off slices.

Sync issues, event rollups, releases, and projects with the Airbyte Sentry source, Fivetran's Sentry connector, or a dlt pipeline against the Sentry Web API.

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 Sentry data in Metabase?

Core tables

TableGrainKey columns
sentry_error_groupsone row per issue (error group)id, project_id, title, service, level, status, first_seen_at, resolved_at
sentry_error_rollupsone row per group per day per environmenterror_group_id, window_start, environment, release_id, event_count, affected_users
sentry_releasesone row per releaseid, version, project_id, released_at, sessions, commit_count

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 Sentry 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 Sentry 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 Sentry in Metabase?

Syncing the raw event firehose into the warehouse.→ Land rollups, entities, and incident- or group-grain tables. Raw telemetry belongs in Sentry; 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 Sentry?
No. Metabase reads databases and warehouses. Sync Sentry 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 Sentry?
No — they answer different questions. Sentry 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 Sentry 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.