Dashboards as Code/Dashboards as codeAnalytics Engineer

How do I use a headless BI workflow?

Metrics and queries are defined in code and served through an API instead of a fixed visual interface. Applications and scheduled jobs request the numbers directly, so the same definitions drive charts, alerts, and exports.

Command

bruin run

Defined in

YAML + SQL

Works with

Bruin + your warehouse

What you get

API-served metricscode-defined queriesno fixed UI

How it works in code

query:
  metric: active_users
  time_dimension: event_date
  grain: day
  filters:
    - plan = 'pro'
  order_by: event_date

Run bruin run and any client can request the metric over the API.

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.