Metabase

An open-source BI tool that sits directly on your SQL database, popular with startups for questions, dashboards and alerts.

Beginner · about 5 hours · difficulty 2/5

Learn first: How BI Platforms Work

Metabase is open source and can run in a single container next to your PostgreSQL or MySQL database. Startups often choose it because non-technical teammates can build simple charts while analysts write SQL for the hard parts.

Two ways to ask questions

  • Query builder: pick a table, filter, summarise and group through menus. Good for colleagues who do not write SQL.
  • Native SQL questions: write SQL directly, add variables ({{start_date}}) that become dashboard filters.

Organising work

  • Collections act like folders with permissions.
  • Models are curated, documented query results that others can build on, a light semantic layer.
  • Metrics and segments define reusable calculations and filters so "active customer" means one thing.
  • Dashboards combine questions, with filters wired to each card's fields.
  • Alerts and subscriptions email or post to Slack when a result changes or on a schedule.

Operating it

Because Metabase queries the database live, point it at a read replica or warehouse rather than the production primary, and add indexes or summary tables for heavy dashboards.

Pitfall: letting dozens of near-duplicate SQL questions pile up with slightly different definitions. Promote good queries to models and archive the rest. You are ready to move on when you can run Metabase locally with Docker, connect a sample database, and build a filtered dashboard from both builder and SQL questions.

Key concepts

  • Running Metabase with Docker
  • Query builder questions
  • Native SQL questions and variables
  • Models, metrics and segments
  • Dashboards and filter wiring
  • Alerts and subscriptions

Other options for this step

  • Power BI: Microsoft's BI suite: Power Query for shaping, a star-schema model, report canvas and the Power BI service for sharing.
  • Tableau: A visual-first BI tool built around drag-and-drop shelves, calculated fields, LOD expressions and Tableau Public for portfolios.
  • Looker Studio: Google's free web-based reporting tool, well suited to marketing dashboards on Google Analytics, Sheets and BigQuery.

Mini project

Run Metabase in Docker against its sample database, create a model for orders, and build a dashboard with a date filter wired to both a query-builder chart and a SQL chart.

Check yourself

Why should Metabase usually query a replica or warehouse instead of the production database?

Free resources