Statsig × Metabase

How to build Statsig dashboards in Metabase

Statsig is a product experimentation platform combining feature gates, A/B testing, and product analytics on one event stream. Metabase is where you turn that delivery activity into shared, trustworthy dashboards. This guide covers two complementary paths: a lightweight MCP + CLI route that pulls live data with the Statsig MCP Server and loads a CSV into Metabase with the Metabase CLI, and a durable pipeline route that syncs Statsig history 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 Statsig connector, and a BI warehouse is the wrong home for raw logs and event streams. Sync entities and history — runs, pull requests, stories, flag changes — and leave the raw firehose in Statsig.

How do you connect Statsig to Metabase?

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

1 · MCP + CLI route (AI-assisted)

Live data in, quick analysis out

Pair the Statsig 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 experiment velocity and outcomes"
  • Loading a Statsig export into Metabase in seconds
  • Spot-checks and one-off analyses without a warehouse
Trade-offs
  • Great for exploration, not governed delivery reporting
  • Use read-only or 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 Statsig entities and history into a database or warehouse with a connector, custom pipeline, or the API, then point Metabase at it.

Best for
  • Statsig delivery dashboards leaders depend on
  • Joining Statsig data with issues, deploys, incidents, or support data
  • Long-run trends for experiment velocity and outcomes and gate rollout status
Trade-offs
  • You own the refresh schedule and the table grain
  • Sync entities and rollups — not raw logs or event firehoses
  • Metric definitions must be consistent across teams and repos

What can you analyze from Statsig data in Metabase?

Once experiments and the related feature gates, Pulse results, gate changes data are in a database, the highest-value views are:

  • Experiment velocity and outcomes — how many experiments launch, conclude, and reach a decision each month.
  • Gate rollout status — which gates are mid-rollout, fully open, or stuck halfway.
  • Stale gate cleanup — gates past their expected lifespan with no recent changes.
  • Metric lifts by experiment — Pulse results landed as a table, comparable across experiments.
  • Exposure volume by gate — how many users each gate and experiment actually touches.

Which Statsig dashboards should you build in Metabase?

For: Eng leads

Rollout activity

What's changing in production and how fast.

  • Flag changes per week by environment (bar)
  • Rollouts in progress (table)
  • Time from flag creation to 100% rollout (line)
  • Changes by actor (table)
For: Platform engineers

Flag hygiene

The flag debt that accumulates silently.

  • Temporary flags older than 90 days (table)
  • Flags with no recent evaluations (table)
  • Archived vs. active flags (line)
  • Flags per project (bar)
For: PMs, data scientists

Experiment outcomes

What experiments actually decided.

  • Experiments launched and concluded per month (bar)
  • Win / loss / inconclusive share (bar)
  • Median days to decision (line)
  • Lifts by metric across experiments (table)
For: SREs, release owners

Change safety

Flag changes joined to what happened next.

  • Flag changes vs. incidents on a timeline (combo)
  • Changes followed by an error spike (table)
  • Off-hours production changes (bar)
  • Kill-switch activations (table)

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

Pair the Statsig 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 current experiments inventory with recent change history and rollout status.
  • Export the result as CSV, keeping stable IDs, projects, states, 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.
  • Audit-log change events are required for rollout velocity and change-vs-incident analysis.
  • mb upload csv needs an uploads database configured under Admin → Settings → Uploads.

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

Statsig MCP Serverofficial

Transport
Hosted remote MCP via Streamable HTTP
Auth
OAuth (Personal Console API Keys) or a statsig-api-key header with a Console API key
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": {
    "statsig": {
      "url": "https://api.statsig.com/v1/mcp"
    }
  }
}

Community npm packages with Statsig-flavored names predate the official server — use the endpoint from Statsig's own docs, not a lookalike package.

TerminalLoad a Statsig 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 experiments export — creates a table AND a model
mb upload csv --file statsig-experiments.csv --collection root

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

Can you generate a Statsig dashboard with AI?

Yes. Use the prompt below with any assistant that can run the Statsig MCP Server and the Metabase CLI. It works end to end: if Statsig 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 Statsig Feature Flag Overview dashboard
Create a polished Metabase dashboard for Statsig feature flag analytics.
Work end to end: get the data into Metabase if it isn't there yet, then build.

Goal: Help engineering leaders understand rollout activity, flag hygiene, experiment outcomes, and change safety from Statsig data.

Step 1 — Find or load the data:
- First, check what already exists in Metabase (search for statsig tables and
  models). If durable Statsig 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 Statsig MCP Server:
  experiments, plus feature gates, Pulse results, gate changes.
  Prefer entity tables and rollups over raw logs. 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, projects,
branches, states, and timestamps, and whether history exists before creating
duration or trend cards.

Important:
- Build on whatever data is present; don't claim Metabase connects natively to
  Statsig — it reads a database or CLI-uploaded tables.
- Never try to load raw build logs or event streams into Metabase; use runs,
  entities, state changes, and rollups.
- Only compute durations (cycle time, build duration, time to review) when the
  required timestamps exist.
- Exclude bot activity, draft work, and non-production environments from
  headline numbers, and keep the segmenting column explicit.
- 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: Statsig Feature Flag Overview

Sections:
1. Executive summary: Active flags; Changes last 30 days; Temporary flags
   over 90 days old; Experiments running; Experiments concluded last quarter.
2. Rollouts: Changes per week by environment; in-progress rollouts; time to
   full rollout.
3. Hygiene: Stale temporary flags; unevaluated flags; flags per project.
4. Experiments: Launched vs concluded; win/loss share; days to decision.
5. Change safety: Changes vs incidents timeline; changes followed by error
   spikes; off-hours changes.

Filters: Date range, Project or Repository, Branch or Environment, 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 Statsig data into a database or warehouse?

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

Fivetran syncs Statsig via a webhook-based connector and Airbyte has a marketplace source. For experiment readouts, the Console API's Pulse report endpoints export lift results per experiment — land those as a results table next to your gate and experiment metadata.

Notes

  • Land raw entity tables first, then build clean Metabase models on top.
  • Sync state-change or audit history from day one — duration metrics can't be reconstructed later without it.
  • Normalize project, environment, flag key, action, actor, and changed-at fields.

How should you model Statsig data in Metabase?

Core tables

TableGrainKey columns
statsig_experimentsone row per experimentid, name, status, hypothesis, started_at, decision_made_at, winning_variant
statsig_gate_changesone row per gate configuration changegate_name, action, actor, environment, changed_at
statsig_pulse_resultsone row per experiment per metric per variantexperiment_id, metric_name, variant, exposures, delta, confidence_interval

Modeling advice

  • Build a clean flag_changes model with common columns across tools, so multi-source dashboards don't fork definitions.
  • Separate entity tables (projects, repos, flags, members) from run-grain and event-grain tables.
  • Exclude bots, drafts, and non-production environments from headline metrics; keep the flag as an explicit column.
  • Use stable IDs for project, repo, and person joins; display names change.

Which Statsig metrics should you track in Metabase?

MetricDefinitionNotes
Deployment frequencyProduction changes per period — flags are deploys too.Count meaningful rollout changes, not every toggle.
Change failure rateChanges causing failures divided by all changes.Join flag changes to incidents and error spikes.
Error rateError events over requests, segmented by flag variation.The fastest read on whether a rollout is safe.
Lead time for changesCommit to live for users — flags decouple deploy from release.Measure to full rollout, not just to deploy.

What SQL powers Statsig dashboards in Metabase?

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

Flag changes per week by environmentPostgreSQL

Rollout activity from audit-log events.

SELECT
  date_trunc('week', changed_at) AS week,
  environment,
  COUNT(*) AS flag_changes
FROM flag_changes
WHERE changed_at >= CURRENT_DATE - INTERVAL '90 days'
GROUP BY 1, 2
ORDER BY 1, 2;
Stale temporary flagsPostgreSQL

Flag debt: temporary flags past their expected lifespan.

SELECT
  key,
  project,
  created_at,
  EXTRACT(DAY FROM (CURRENT_TIMESTAMP - created_at)) AS age_days
FROM flags
WHERE temporary
  AND NOT archived
  AND created_at < CURRENT_DATE - INTERVAL '90 days'
ORDER BY created_at
LIMIT 50;
Experiment outcomes by monthPostgreSQL

Conclusion volume and time to decision.

SELECT
  date_trunc('month', decision_made_at) AS month,
  COUNT(*) AS experiments_concluded,
  COUNT(*) FILTER (WHERE winning_variant IS NOT NULL) AS with_winner,
  percentile_cont(0.5) WITHIN GROUP (
    ORDER BY EXTRACT(EPOCH FROM (decision_made_at - started_at)) / 86400
  ) AS median_days_to_decision
FROM experiments
WHERE decision_made_at IS NOT NULL
GROUP BY 1
ORDER BY 1;

What are common mistakes when analyzing Statsig in Metabase?

Syncing raw logs or event streams into the warehouse.→ Land runs, entities, state changes, and rollups. Raw build logs and evaluation events belong in Statsig; the warehouse is for trends and joins.
Trending raw toggle counts as delivery activity.→ One rollout can be fifty micro-adjustments. Group audit events into meaningful changes (per flag per environment per day) before trending.
Declaring experiment winners from the exposure rollup.→ Statistical judgment lives in the experimentation tool. Report decisions and outcomes in Metabase; don't recompute significance from daily aggregates.
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 Statsig?
No. Metabase reads databases and warehouses. Sync Statsig entities and history into a database first, or upload a CSV with the Metabase CLI, then build Metabase models and dashboards on top.
Should Metabase replace Statsig's built-in reporting?
No — they answer different questions. Statsig's own views are built for operating the tool day to day. Metabase is where you build governed, shareable reporting on top of the same data, and join it with the rest of your delivery stack — issues, deploys, incidents, and business outcomes.
Why analyze flag data in a BI tool at all?
Because the interesting questions are joins. Whether a rollout correlates with an error spike, whether flag debt is growing faster than cleanup, and what share of experiments produce a decision are cross-tool questions — flag changes next to incidents, deploys, and product metrics — and that's exactly what a warehouse plus Metabase is for.
Should I sync raw evaluation or exposure events?
Almost never at full grain — evaluation streams are enormous. Sync flag and experiment metadata, audit-log change events, and daily exposure rollups. Keep the raw stream in the vendor's own analytics if you need event-level debugging.