Better Stack × Metabase

How to build Better Stack dashboards in Metabase

Better Stack is an uptime monitoring, incident management, and log/telemetry platform with on-call scheduling and public status pages. 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 Better Stack MCP server and loads a CSV into Metabase with the Metabase CLI, and a durable pipeline route that syncs Better Stack 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 Better Stack 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 Better Stack.

How do you connect Better Stack 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 Better Stack 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 uptime by monitor and service"
  • Loading a Better Stack 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 Better Stack rollups and metadata into a database or warehouse with a connector, custom pipeline, or API, then point Metabase at it.

Best for
  • Better Stack reliability dashboards leaders depend on
  • Joining Better Stack data with deploys, issues, support, or cost data
  • Long-run trends for uptime by monitor and service and downtime incidents and recovery
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 Better Stack data in Metabase?

  • Uptime by monitor and service — built from monitor check rollups and the related downtime incidents, monitors, heartbeats data your sync exposes.
  • Downtime incidents and recovery — built from monitor check rollups and the related downtime incidents, monitors, heartbeats data your sync exposes.
  • Response time trends — built from monitor check rollups and the related downtime incidents, monitors, heartbeats data your sync exposes.
  • On-call and escalation load — built from monitor check rollups and the related downtime incidents, monitors, heartbeats data your sync exposes.
  • SLA compliance — built from monitor check rollups and the related downtime incidents, monitors, heartbeats data your sync exposes.

Which Better Stack dashboards should you build in Metabase?

For: SREs, service owners

Uptime overview

Whether every monitored endpoint meets its target.

  • Uptime percentage by monitor (table)
  • Uptime trend by week (line)
  • Monitors below target (number)
  • Checks by region or location (bar)
For: On-call engineers

Downtime incidents

How often things go down and how fast they recover.

  • Downtime incidents per week (bar)
  • Median time to recovery (line)
  • Longest outages this quarter (table)
  • Repeat offenders by monitor (table)
For: Engineers, performance owners

Response time

Latency trends before they become outages.

  • Response time p95 by monitor (line)
  • Slowest endpoints (table)
  • Response time by region (bar)
  • Degradation vs. 28-day baseline (table)
For: Leadership, customer-facing teams

SLA compliance

Uptime against the targets you publish.

  • SLA compliance by service (bar)
  • Downtime minutes vs. allowance (table)
  • Months breaching SLA (table)
  • Status-page incident count (line)

How do you use the Better Stack MCP server with the Metabase CLI?

Pair the Better Stack 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 recent monitor check rollups with downtime incidents and response-time summaries.
  • 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.
  • Per-window check rollups and incident start/resolve timestamps are required for uptime and MTTR trends.
  • mb upload csv needs an uploads database configured under Admin → Settings → Uploads.

How do you set up Better Stack MCP and the Metabase CLI?

Better Stack MCP serverofficial

Transport
Hosted remote MCP via Streamable HTTP
Auth
OAuth or an API 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": {
    "betterstack": {
      "url": "https://mcp.betterstack.com"
    }
  }
}

Clients without remote-HTTP support can bridge with npx -y mcp-remote https://mcp.betterstack.com. Limit exposed tools with the X-MCP-Tools-Only header for analysis-only sessions.

TerminalLoad a Better Stack 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 monitor-check-rollups export — creates a table AND a model
mb upload csv --file better-stack-monitor-check-rollups.csv --collection root

# Refresh that same table later from a new export
mb upload replace <table-id> --file better-stack-monitor-check-rollups.csv

Can you generate a Better Stack dashboard with AI?

Yes. Use the prompt below with any assistant that can run the Better Stack MCP server and the Metabase CLI. It works end to end: if Better Stack 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 Better Stack Uptime Monitoring Overview dashboard
Create a polished Metabase dashboard for Better Stack uptime 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 uptime by monitor, downtime incidents, recovery speed, response times, and SLA compliance from Better Stack data.

Step 1 — Find or load the data:
- First, check what already exists in Metabase (search for better-stack tables and
  models). If durable Better Stack 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 Better Stack MCP server:
  monitor check rollups, plus downtime incidents, monitors, heartbeats.
  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
  Better Stack — 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: Better Stack Uptime Monitoring Overview

Sections:
1. Executive summary: Overall uptime last 30 days; Monitors below target;
   Downtime incidents last 30 days; Median time to recovery.
2. Uptime: Uptime percentage by monitor by week; monitors below target.
3. Incidents: Downtime incidents by week; recovery-time trend; longest outages.
4. Response time: p95 by monitor; slowest endpoints; degradation vs. baseline.
5. SLA: Compliance by service; downtime minutes vs. allowance; breach history.

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 Better Stack data into a database or warehouse?

For dashboards that need history and reliability, land Better Stack 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 Better Stack Uptime API v3 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 Uptime API v3 (monitors, incidents, and incident timelines return JSON) on a schedule, and land uptime rollups plus a downtime-incident table in your warehouse.

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 monitor, service, environment, window-start, up-seconds, and incident-timestamp fields.

How should you model Better Stack data in Metabase?

Core tables

TableGrainKey columns
uptime_check_rollupsone row per monitor per hour or daymonitor_name, service_name, window_start, up_seconds, total_seconds, avg_response_ms, p95_response_ms
downtime_incidentsone row per downtime incidentid, monitor_name, cause, started_at, acknowledged_at, resolved_at
betterstack_monitorsone row per monitorid, name, url, check_frequency_seconds, regions, status

Modeling advice

  • Build a clean uptime_check_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 Better Stack metrics should you track in Metabase?

MetricDefinitionNotes
Service availabilityUp seconds or successful checks divided by total, per monitor.Time-based uptime and request-based availability differ — pick one.
Incident countQualifying downtime incidents per period, by service.Separate confirmed downtime from flapping checks.
MTTRMedian time from downtime start to recovery.Use median and p90, not the mean.
SLO complianceActual uptime against the SLA or SLO target per service.Track downtime minutes against the explicit allowance.

What SQL powers Better Stack dashboards in Metabase?

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

Uptime percentage by monitor by weekPostgreSQL

From up/total-second rollups per check window.

SELECT
  monitor_name,
  date_trunc('week', window_start) AS week,
  ROUND(
    100.0 * SUM(up_seconds) / NULLIF(SUM(total_seconds), 0), 3
  ) AS uptime_pct
FROM uptime_check_rollups
WHERE environment = 'production'
GROUP BY 1, 2
ORDER BY 1, 2;
Downtime incidents and recovery timePostgreSQL

Frequency and median recovery per monitor, trailing 90 days.

SELECT
  monitor_name,
  COUNT(*) AS downtime_incidents,
  percentile_cont(0.5) WITHIN GROUP (
    ORDER BY EXTRACT(EPOCH FROM (resolved_at - started_at)) / 60
  ) AS median_recovery_minutes,
  MAX(EXTRACT(EPOCH FROM (resolved_at - started_at)) / 60)
    AS longest_outage_minutes
FROM downtime_incidents
WHERE started_at >= CURRENT_DATE - INTERVAL '90 days'
  AND resolved_at IS NOT NULL
GROUP BY monitor_name
ORDER BY downtime_incidents DESC;
Response time by monitor at rollup grainPostgreSQL

Average and p95 latency from check rollups — no re-aggregated percentiles.

-- Keep average and p95 at the rollup grain they were computed.
-- Re-averaging avgs or taking MAX of daily p95s invents a fake percentile.
SELECT
  monitor_name,
  window_start,
  avg_response_ms,
  p95_response_ms
FROM uptime_check_rollups
WHERE window_start >= CURRENT_DATE - INTERVAL '28 days'
ORDER BY 1, 2;

What are common mistakes when analyzing Better Stack in Metabase?

Syncing the raw event firehose into the warehouse.→ Land rollups, entities, and incident- or group-grain tables. Raw telemetry belongs in Better Stack; the warehouse is for trends and joins.
Averaging uptime across monitors.→ A 99.99% API and a 97% marketing site don't average into anything meaningful. Report each monitor against its own target.
Counting every failed check as downtime.→ Single failed checks are often network blips. Count confirmed incidents (consecutive failures or multi-region confirmation) and track flapping monitors separately.
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 Better Stack?
No. Metabase reads databases and warehouses. Sync Better Stack 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 Better Stack?
No — they answer different questions. Better Stack 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.
Can I compute uptime percentages from a current-state export?
Only partially. A snapshot of monitor status tells you what is up right now; uptime over time needs per-window rollups or a downtime-incident history with start and resolve timestamps. Verify those exist before building trend cards.
Should I sync every raw check result?
No. A monitor checking every 30 seconds generates ~2,880 rows a day of mostly identical data. Land hourly or daily rollups (up seconds, total seconds, response-time percentiles) plus a downtime-incident table — that covers every uptime and SLA dashboard.