Azure DevOps × Metabase

How to build Azure DevOps dashboards in Metabase

Azure DevOps is Microsoft's engineering platform spanning Boards work tracking, Repos code hosting, and Pipelines CI/CD. 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 Azure DevOps MCP Server and loads a CSV into Metabase with the Metabase CLI, and a durable pipeline route that syncs Azure DevOps 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 Azure DevOps 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 Azure DevOps.

How do you connect Azure DevOps 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 Azure DevOps 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 sprint and work-item flow"
  • Loading a Azure DevOps 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 Azure DevOps entities and history into a database or warehouse with a connector, custom pipeline, or the API, then point Metabase at it.

Best for
  • Azure DevOps delivery dashboards leaders depend on
  • Joining Azure DevOps data with issues, deploys, incidents, or support data
  • Long-run trends for sprint and work-item flow and pipeline success rate and duration
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 Azure DevOps data in Metabase?

Once work items and the related pipeline runs, pull requests, repositories data are in a database, the highest-value views are:

  • Sprint and work-item flow — cycle time, throughput, and WIP from Boards state history.
  • Pipeline success rate and duration — build health across projects from Pipelines run data.
  • PR review health — time to first review and time to merge across Repos.
  • Lead time from commit to deploy — the DORA throughput view, joining Repos commits to Pipelines deployments.
  • Backlog and bug aging — how long open work and defects have been waiting, by area path and team.

Which Azure DevOps dashboards should you build in Metabase?

For: EMs, delivery leads

Work-item flow

How work moves from backlog to done.

  • Cycle time, median and p90 (line)
  • Work items completed per sprint (bar)
  • WIP by state (bar)
  • Aging in-progress items (table)
For: Platform engineers

Pipeline health

Build reliability and speed across projects.

  • Pipeline success rate by week (line)
  • Median and p95 run duration (line)
  • Failed runs by pipeline (bar)
  • Runs per day (line)
For: Eng leads

Code review flow

Where pull requests wait.

  • PR cycle time, median (line)
  • Time to first review (line)
  • Open PRs by age bucket (bar)
  • Review load by reviewer (table)
For: Leadership

DORA overview

The four keys from Boards, Repos, and Pipelines together.

  • Deployment frequency (bar)
  • Lead time for changes (line)
  • Change failure rate (number + trend)
  • MTTR from linked incidents (line)

How do you use the Azure DevOps MCP Server with the Metabase CLI?

Pair the Azure DevOps 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 work items with state timestamps, plus the latest pipeline runs.
  • 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.
  • Work-item state transitions and pipeline run history are required for cycle-time and lead-time trends.
  • mb upload csv needs an uploads database configured under Admin → Settings → Uploads.

How do you set up Azure DevOps MCP and the Metabase CLI?

Azure DevOps MCP Serverofficial

Transport
Local server over stdio (npx); a hosted remote endpoint is in public preview
Auth
Microsoft Entra ID (your az / VS Code login)
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": {
    "azure-devops": {
      "command": "npx",
      "args": ["-y", "@azure-devops/mcp", "your-org"]
    }
  }
}

Microsoft also runs a hosted endpoint at https://mcp.dev.azure.com/{organization} (public preview; requires an Entra-backed organization). Watch for community lookalikes on npm — @azure-devops/mcp from Microsoft is the official package.

TerminalLoad a Azure DevOps 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 work-items export — creates a table AND a model
mb upload csv --file azure-devops-work-items.csv --collection root

# Refresh that same table later from a new export
mb upload replace <table-id> --file azure-devops-work-items.csv

Can you generate a Azure DevOps dashboard with AI?

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

Goal: Help engineering leaders understand work-item flow, pipeline health, code review latency, and the DORA metrics from Azure DevOps data.

Step 1 — Find or load the data:
- First, check what already exists in Metabase (search for azure-devops tables and
  models). If durable Azure DevOps 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 Azure DevOps MCP Server:
  work items, plus pipeline runs, pull requests, repositories.
  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
  Azure DevOps — 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: Azure DevOps Engineering Overview

Sections:
1. Executive summary: Work items completed last 30 days; Median cycle time;
   Pipeline success rate; Open PRs; Deploys last 30 days.
2. Flow: Cycle time trend; items completed per sprint; WIP and aging items.
3. Pipelines: Success rate and duration by week; failed runs by pipeline.
4. Code review: PR cycle time; time to first review; review load.
5. DORA: Deployment frequency; lead time; change failure rate; MTTR if synced.

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 Azure DevOps data into a database or warehouse?

For dashboards that need history and reliability, land Azure DevOps 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 Azure DevOps Analytics (OData) for control over fields, grain, and refresh cadence.
  • MCP + CSV — use this for quick exploration and one-off slices.

Fivetran ships an official Azure DevOps connector (Boards data via the Analytics views). The Analytics OData feeds are the best export story in this cluster — they serve aggregated work-item, pipeline, and test data designed for exactly this kind of reporting.

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, work-item type, state, area or team, and state-transition-timestamp fields.

How should you model Azure DevOps data in Metabase?

Core tables

TableGrainKey columns
ado_work_itemsone row per work itemid, project, type, state, area_path, created_at, activated_at, closed_at, story_points
ado_pipeline_runsone row per pipeline runid, pipeline_name, result, source_branch, queued_at, started_at, duration_seconds
ado_pull_requestsone row per pull requestid, repo, author, status, created_at, first_review_at, completed_at

Modeling advice

  • Build a clean work_items 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 Azure DevOps metrics should you track in Metabase?

MetricDefinitionNotes
Cycle timeWork started to done — a median, from state history.Needs activated and closed timestamps.
Deployment frequencyProduction deployments per period — a DORA throughput metric.Use Pipelines run data scoped to production stages.
Lead time for changesCommit to running in production — a DORA throughput metric.Join Repos commits to Pipelines deploys.
Build success rateSuccessful runs divided by all completed runs.Watch main-branch runs separately from PR runs.

What SQL powers Azure DevOps dashboards in Metabase?

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

Work-item cycle time by weekPostgreSQL

Median and p90 from activated to closed.

SELECT
  date_trunc('week', closed_at) AS week,
  percentile_cont(0.5) WITHIN GROUP (
    ORDER BY EXTRACT(EPOCH FROM (closed_at - activated_at)) / 86400
  ) AS median_cycle_days,
  percentile_cont(0.9) WITHIN GROUP (
    ORDER BY EXTRACT(EPOCH FROM (closed_at - activated_at)) / 86400
  ) AS p90_cycle_days
FROM work_items
WHERE closed_at IS NOT NULL
  AND activated_at IS NOT NULL
GROUP BY 1
ORDER BY 1;
Pipeline success rate by weekPostgreSQL

Build health across the org's pipelines.

SELECT
  date_trunc('week', started_at) AS week,
  COUNT(*) AS builds,
  ROUND(
    100.0 * COUNT(*) FILTER (WHERE result = 'success')
    / NULLIF(COUNT(*), 0), 1
  ) AS success_rate_pct
FROM pipeline_runs
WHERE branch = 'main'
GROUP BY 1
ORDER BY 1;
Time to first PR reviewPostgreSQL

Review latency, the usual cycle-time bottleneck.

SELECT
  date_trunc('week', created_at) AS week,
  percentile_cont(0.5) WITHIN GROUP (
    ORDER BY EXTRACT(EPOCH FROM (first_review_at - created_at)) / 3600
  ) AS median_hours_to_first_review
FROM pull_requests
WHERE first_review_at IS NOT NULL
GROUP BY 1
ORDER BY 1;

What are common mistakes when analyzing Azure DevOps 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 Azure DevOps; the warehouse is for trends and joins.
Reconstructing metrics the Analytics views already serve.→ Azure DevOps Analytics pre-aggregates work-item, pipeline, and test data for reporting. Rebuilding those rollups from raw entities adds drift for no benefit.
Averaging cycle time across work-item types.→ Bugs, tasks, and epics have different natural durations. Segment by type and report medians within each.
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 Azure DevOps?
No. Metabase reads databases and warehouses. Sync Azure DevOps 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 Azure DevOps's built-in reporting?
No — they answer different questions. Azure DevOps'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.
Should I use the Analytics OData feeds or sync raw entities?
Start with the Analytics feeds — they serve pre-aggregated work-item, pipeline, and test data designed for reporting, and they answer most questions without reconstruction. Sync raw entities only when you need custom grain the views don't offer.
Can I compute all four DORA metrics from Azure DevOps alone?
Deployment frequency and lead time for changes, yes — Pipelines and Repos carry the data. Change failure rate and MTTR need a definition of failure, which usually means joining incident data from a tool like PagerDuty or an error tracker.