Dashboards as Code/Dashboards as codeAnalytics Engineer

How do I keep BI metrics consistent across tools?

Define each metric once in code and have every BI tool read that definition. In Bruin's dashboards as code, a metric is declared in YAML with its SQL expression and time dimension and exposed through a query interface that different BI tools call, so it returns the same value in every report and notebook.

Command

bruin run

Defined in

YAML + SQL

Works with

Bruin + your warehouse

What you get

shared metric definitionsquery interfacecross-tool parity

How it works in code

metrics:
  - name: gross_margin
    label: Gross Margin
    source: analytics.finance_daily
    expression: (revenue - cost) / NULLIF(revenue, 0)
    time_dimension: report_date

Run bruin run and every connected tool reads the same metric value.

Dashboards that live in git

Bruin CLI and ingestr are on GitHub.

A demo walks through your own data.

Sign up to our newsletter

Practical updates on open-source data pipelines, AI analysts, governance, and what we are shipping at Bruin.

The signup form is hosted by Brevo. Allow marketing cookies to load it.