Dashboards as Code/Dashboards as codeAnalytics Engineer

How do I build dashboards directly from dbt models?

A chart points at a dbt model by name and queries the table that model produces in the warehouse. When the model is rebuilt the dashboard reads the updated table without any manual export step.

Command

bruin run

Defined in

YAML + SQL

Works with

Bruin + your warehouse

What you get

dbt model referencewarehouse-backed chartsautomatic refresh

How it works in code

dashboard:
  name: marketing_overview
  charts:
    - title: Signups by channel
      type: bar
      model: dbt.stg_signups
      query: |
        SELECT channel, COUNT(*) AS signups
        FROM dbt.stg_signups
        GROUP BY channel

Run bruin run and the dashboard reads directly from the dbt model output.

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.