
export ( dbt_path, mb_host, mb_user, mb_password, database, schema ) Code of ConductĪll contributors are expected to follow the PyPA Code of Conduct.
METABASE STATUS HOW TO
But if you prefer to call it from your code, here’s how to do it: import dbtmetabase dbtmetabase. sync_timeout - number of seconds to wait and re-check data model beforeĪs you have already seen, you can invoke dbt-metabase from the command sync - boolean to enable or disable pre-synchronization You can control this behavior with two arguments: Database Syncīy default, dbt-metabase will tell Metabase to synchronize database fieldsĪnd wait for the data model to contain all the tables and columns in your dbt
METABASE STATUS UPDATE
If you notice new ones, please submit a PR to update this readme. Retired (supported but not reflected in the UI) Hidden (supported but not reflected in the UI) Here are the visibility types supported by Metabase: meta : metabase.special_type : type/Email metabase.visibility_type : sensitive Here is how you would hide that same email: - name : email description : User's email address. This affects whether or not they are displayed in the Metabase UI. In addition to special types, you can optionally specify visibility for eachįield. The Metabase status here can help you determine if there is a global outage and Metabase is down for everyone or it is just you that is experiencing problems. Here is the list of special types currently accepted by Metabase: Once you run dbt-metabase export again, you will notice that EMAIL is meta : metabase.special_type : type/Email Now that we have primary and foreign keys, let’s tell Metabase that emailĬhange the email column as follows: - name : email description : User's email address. GROUP_ID is marked as “Foreign Key” pointing to ID in STG_GROUPS. Will notice that ID in STG_USERS is now marked as “Entity Key” and dbt-metabase export \Ĭheck your Metabase instance by going into Settings > Admin > Data Model, you That’s already enough to propagate the primary keys, foreign keys andĭescriptions to Metabase by executing the below command. tests : - not_null - unique - name : name description : Group name. lets add metrics around new customers, the products being purchased, and your net Stripe balance. columns : - name : id description : Primary key. Real-time subscription revenue analytics in Metabase. tests : - not_null - relationships : to : ref('groups') field : id - name : stg_groups description : User groups. name : group_id description : Foreign key to user group. tests : - not_null - unique - name : email description : User's email address. columns : - name : id description : Primary key. models : - name : stg_users description : User records.

Let’s start by defining a short sample schema.yml as below.
METABASE STATUS INSTALL
You can install dbt-metabase from PyPI: pip install dbt-metabase Basic Example Your analytics tool, dbt-metabase can propagate table relationships, model andĬolumn descriptions and special types (e.g. If dbt is your source of truth for database schemas and you use Metabase as Model synchronization from dbt to Metabase.
