dbt-labs/metricflow
MetricFlow allows you to define, build, and maintain metrics in code. observed · 2026-08-28
Health v2 · maintenance only
99/100
- Activity 99
- Release rhythm 98
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 25.5
- age_days: 1612
- days_rel: 14
- days_push: 9
- n_releases_24m: 11
Adoption not part of the score
1768 stars · 199 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
MetricFlow is a Python semantic layer library from dbt Labs that lets you define, build, and maintain business metrics in code. It compiles metric definitions into optimized, engine-specific SQL, handling multi-hop joins, ratio/expression/cumulative metrics, and time-granularity aggregation.
Use cases
- define business metrics as code in yaml
- generate consistent sql queries from metric definitions
- build a semantic layer on top of a data warehouse
- query metrics with dimensions and time granularities
- avoid duplicated metric logic across bi tools
- compute ratio and cumulative metrics from warehouse data
When to choose
- you use dbt and want centralized, version-controlled metric definitions
- you need consistent metric logic across multiple BI tools and consumers
- you want automated SQL generation with multi-hop joins and complex metric types
- you target Snowflake, BigQuery, Databricks, Postgres, or Redshift
When to avoid
- you need a standalone BI dashboard or visualization tool
- you don't use dbt or a SQL data warehouse
- you need real-time streaming metrics rather than warehouse queries
- you want a no-code metrics interface for non-technical users
Facets
library · maturity active
data-science analytics cli developer-tools analytics big-data developer-tools python cli cross-platform semantic-layer metrics-as-code sql-generation dbt business-intelligence data-modeling data-engineering
10 sources
- readme: https://github.com/dbt-labs/metricflow · fetched 2026-08-28 · f5032c0b4863
- homepage: https://docs.getdbt.com/docs/build/about-metricflow · fetched 2026-08-29 · 4b8002dd5d24
- site_page: https://docs.getdbt.com/docs/dbt-versions/dbt-release-tracks?version=2.0 · fetched 2026-08-29 · ee97df5e3f4e
- site_page: https://docs.getdbt.com/docs/introduction · fetched 2026-08-29 · c63f73658ab6
- site_page: https://docs.getdbt.com/docs/dbt-apis/overview · fetched 2026-08-29 · dc0461646565
- site_page: https://docs.getdbt.com/docs/dbt-versions/release-notes · fetched 2026-08-29 · db3cfb1a642a
- site_page: https://docs.getdbt.com/docs/faqs · fetched 2026-08-29 · 6a1e83a5bfcd
- site_page: https://docs.getdbt.com/docs/dbt-support · fetched 2026-08-29 · 17e279f54ef7
- site_page: https://docs.getdbt.com/docs/dbt-licensing · fetched 2026-08-29 · 6c34c0540c7c
- site_page: https://docs.getdbt.com/docs/dbt/get-started-dbt · fetched 2026-08-29 · 7e642f2cc4cf
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dbt-labs/metricflow | main | 99 |
For agents
markdown · JSON · MCP: product_card(name="dbt-labs/metricflow")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem