Dashboards as Code/Dashboards as codeAnalytics Engineer

How do I keep BI metrics consistent across tools?

Metrics are defined in code and exposed through a query interface that different BI tools call. Each tool reads the same definition, so a metric 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

Open source. Write YAML, run one command, query your warehouse directly.

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. Accept cookies to load it.