dbt Core

Revefi integrates with dbt Core to help connect the dots between your data issues and your dbt models (e.g. model code changes).

Pre-reqs:

  1. Make sure you have Python 3.10 or above installed on your machine. If you are using Python 3.9, see Using Python 3.9.

Follow the steps below to set up the integration:

  1. You will need the Revefi Auth token, which you will get during Revefi Onboarding, or when connecting to dbt Core in the Connections tab in the left navigation.

In either of those steps, you can generate the token in below screen:


Copy and keep the generated auth token safely. Revefi displays the token only once and does not have the ability to display it later.


  1. Run pip install git+https://github.com/revefi/dbt_python_client.git to install the revefi-dbt-client package.
pip install git+https://github.com/revefi/dbt_python_client.git

Using Python 3.9

If you are using Python 3.9, install the package from the main-python-3-9 branch instead:

pip install git+https://github.com/revefi/dbt_python_client.git@main-python-3-9
🚧

Python 3.9 is deprecated

Python 3.9 has reached end of life and no longer receives security updates. The main-python-3-9 branch is provided for compatibility only. We recommend upgrading to Python 3.10 or above and installing from the main branch.

  1. In a terminal, run the CLI revefi-dbt-client --token <auth-token> --project_folder <project-folder>, where
    1. auth-token is the token you received in Step 1 above
    2. project_folder is your dbt Core Project folder
revefi-dbt-client --token <auth-token> --project_folder <project-folder>

NOTE:

  • The uploader assumes that the dbt target path is set to "target" within the project folder. If you are using some other target path, you may override the default behavior with

revefi-dbt-client --token <auth-token> --project_folder <project-folder> --target_folder <target-folder>


  • After executing dbt build, dbt run, or dbt test in your production dbt workflow, run the above CLI directly to handle file overwriting in the target directory.


What’s Next

After running the python CLI per above, in a few minutes you will see information show up in the Revefi UI for the dbt info corresponding to your tables. As an example, in the dbt tab on the left navigation, you will see insights on what are your most costly models, quick summaries about recent run trends are more!

Did this page help you?