[Open Source] Metabase: BI Dashboards Everyone Can Use
![[Open Source] Metabase: BI Dashboards Everyone Can Use](https://yy123.ink/api/img/smb-metabase-1.png)
Overview
Metabase is an open-source business intelligence tool that lets people who cannot write SQL answer their own questions. After connecting a database, staff click through tables, fields and filters to build charts and dashboards; analysts can still write native SQL when needed. It turns the chain from data to question to chart to shared dashboard into a very short workflow, which makes it a common first BI platform for small companies. A commercial edition exists, but the open-source build covers most internal reporting.
Why it fits a small business
Most owners are not short of data; they are short of access to it. Getting last month's sales usually means asking finance for an export and waiting for someone to build a spreadsheet. Metabase turns that into a few clicks. Sales, stock and cash collection can live on one dashboard that is emailed to the team every morning, and metrics can raise alerts when they cross a threshold. It does not replace the accounting system, but it lets the owner feel the pulse of the business at any time and spot quiet problems early.
What you can do
- A visual query builder for filtering, aggregating and comparing periods
- Native SQL questions whose results can be charted and saved
- Dashboards with date and dropdown filters and click-through drill-down
- Data models that rename tables and fields in business language
- Subscriptions and alerts delivered by email or chat
- Collections and row-level permissions for each team
- Embedded analytics and APIs for your own business system
- Connectors for MySQL, PostgreSQL, ClickHouse, BigQuery and Snowflake
Stack and license
Metabase is written in Clojure with a React frontend and runs as a Java application, so its memory needs are higher than most tools in this batch. Images are published by the project and pinning an exact version such as v0.65.6.3 is wise because major upgrades often involve metadata migrations. The open-source edition is AGPL-3.0, with Pro and Enterprise additions sold separately. For internal reporting, the free edition already provides models, dashboards, subscriptions and permissions.
Deployment notes
A single container is enough to start: it listens on port 3000 and uses an embedded H2 database for questions and dashboards. The first visit opens a setup wizard to create an administrator, set the site URL and connect a data source. For production, move the application database to PostgreSQL via MB_DB_TYPE and related variables; H2 is fragile under frequent writes or multiple instances. The default Java heap is small, so large queries can exhaust memory unless JAVA_OPTS raises it. Behind a proxy, MB_SITE_URL must be correct or subscription links break. Long request timeouts matter more than WebSocket support.
- Query timeouts are fixed by raising proxy timeouts, increasing the Java heap or pre-aggregating data.
- Upgrades across major versions need a staged path; read the migration notes first.
- Missing Chinese glyphs in charts mean the container needs a Chinese font installed.
- Email delivery fails unless SMTP works and MB_SITE_URL is a publicly reachable HTTPS address.
Resource footprint
Expect roughly 1.2 GB of memory when idle and up to 2.5 GB during heavy queries. 4 CPU / 8 GB is a sensible starting point; 2 CPU / 4 GB is only for evaluation. The image is about 1.1 GB. If business tables are large, use a read replica or a periodically synchronised reporting database so analysis never slows down transactions.
Before you deploy
Write down the few facts that will be used every day before creating containers: the people who need access, the names of the main business objects, and the one workflow that must work on launch day. Most failed self-hosting projects do not fail because the software is broken; they fail because master data is messy and nobody agreed on who owns each step. Prepare persistent volumes, a final domain name and a working SMTP account now, since all three are painful to retrofit after staff have started using the system. If the tool will be reachable from the internet, plan for HTTPS from the first hour rather than as a later improvement.
Data organisation
Start small and real. Import a handful of current records rather than a perfect but imaginary dataset, then walk one complete cycle from creation to report. Give fields short, familiar names and resist adding custom fields until somebody asks for the same filter twice. Define roles at the same time as data: an owner who can see everything, a small group that can edit, and everyone else with read-only or self-service access. Write the three or four rules that matter most into a one-page guide, because a short guide that people read is more useful than a long manual that nobody opens. Review the structure after a month and remove fields that nobody uses.
Backup, upgrades and security
Every system in this batch stores its real value in two places: the database and the uploaded files. Back up both on the same schedule, keep one copy away from the host, and perform a restore drill at least once a quarter. Before replacing an image, read the release notes, take a fresh backup and, where practical, rehearse the upgrade on a test instance. Use one account per person, disable accounts immediately when someone leaves, and keep the administrator login for administration rather than daily work. Check public links and API tokens periodically; forgotten shares are a common source of leaks. HTTPS, strong passwords and a short access review every quarter are enough to protect a small business without building a security programme.
Getting started
- Prepare persistent volumes, the database, the final HTTPS address and the pinned image tag.
- Start the stack and complete the first-run wizard or site creation step before inviting anyone.
- Enter a small set of real master data and run one complete workflow to the final report.
- Assign roles, configure email notifications and document the three steps people will use daily.
- Schedule backups, rehearse a restore and only then make the system the team's default place to work.
Pitfalls
- Query timeouts are fixed by raising proxy timeouts, increasing the Java heap or pre-aggregating data.
- Upgrades across major versions need a staged path; read the migration notes first.
- Missing Chinese glyphs in charts mean the container needs a Chinese font installed.
- Email delivery fails unless SMTP works and MB_SITE_URL is a publicly reachable HTTPS address.
Who should use it
Companies that want data to answer questions without a report queue: e-commerce operations, retail, sales reviews and stock turnover analysis. It does not enter data or enforce business processes, so connect it to Dolibarr, InvenTree or NocoDB for best results. With a read-only database user, it is safe to let curious staff explore.
A typical day
The pattern is similar across these tools. In the morning someone opens the system instead of a chat thread, because that is where the current state lives. Work is recorded once, at the moment it happens, and the record carries enough context for a colleague to continue. During the day, filters and views answer the small questions that used to interrupt other people: what is waiting, what is overdue, and who owns the next step. At the end of the day or week, a report is generated from the same records rather than rebuilt by hand. That is the practical return on self-hosting: fewer repeated questions, fewer conflicting versions of the truth, and data that remains yours.
Links
Source repository | Container image | Official documentation
Having trouble setting up this project?
We have run “[Open Source] Metabase: BI Dashboards Everyone Can Use” locally and verified that it installs and the admin panel works. We can deploy it to your server.
- Starting at
- from $149
- Estimated time
- 48 hours
- Deployment notes
- Compose 编排、应用元数据库、管理员初始化、数据源与权限配置、HTTPS 反代 / Compose stack, app DB, admin setup, data sources and permissions, HTTPS proxy
WeChat: ITcloub · Bring your own server and domain · Full refund if deployment fails