- Add a warehouse credential for the warehouse where your dbt output is stored.
- Add a dbt Core credential which will be used when uploading your dbt files.
- Upload your dbt manifest and run results files to Validio.
- Add dbt sources for monitoring model runs and test results.
Prerequisites for integrating with dbt Core
You must have the Validio CLI or Validio SDK installed on the machine or image that runs dbt. You can use either service to upload your dbt manifest and run results files to Validio. (Installing the CLI will automatically install the Validio SDK.) For more information, see Getting Started with Validio Developer Tools and Validio CLI.Add a warehouse credential
Before creating a dbt Core credential, you must create a valid credential for the warehouse where your dbt output is stored. You will reference this warehouse credential when you configure the dbt Core credential. For specific credential setup instructions, see Data Warehouse Sources and select the relevant warehouse (for example, BigQuery or PostgreSQL).Add a dbt Core credential
To add a credential for monitoring dbt sources,- Navigate to Credentials and click + New credential.
- Under Namespace, select a namespace where the resources will be created.
- For Credential Type, select dbt Core.
- Fill in the Configuration parameter fields. Refer to the dbt Core Credential Parameters table.
- (Optional) Click Test credential to validate the connection. If validation fails, check that you provided the correct parameter values.
- Click Create credential.
dbt Core credential parameters
Upload dbt files to Validio
You can use either the Validio CLI or Validio SDK to upload your dbt manifest and run files to Validio.Upload with Validio CLI
In the Validio CLI, run thevalidio dbt upload command as shown in the following example. For available options, refer to the dbt CLI Parameters table.
Shell
Upload with Validio SDK
The following is an example of how to use the Validio SDK to upload the dbt files to Validio. For available options, refer to the dbt SDK Parameters table.Python
Add a dbt source
Validio provides two types of dbt sources that you can add for monitoring dbt runs and tests: dbt Model Run and dbt Test Result. To add a dbt source:- Navigate to Sources and click + New source.
- Under Source type, click Data transformation to select dbt Model Run or dbt Test Result.
- Under Config,
- Select the valid Credential, or create a new credential to authenticate your connection.
- Select a Project name and Job name. These correspond to the data you uploaded with
validio dbt upload(the--job-nameyou specified). - Set the Polling schedule (cron expression in UTC), which is how frequently Validio checks for new dbt metadata.
- Under Source details,
- Enter a Name for the source.
- (Optional) Add a Description.
- Add Tags to help group related sources or to use for routing notifications.
- Click Continue to create the source.
Validio automatically infers the schema and defines default segmentation.
- For dbt Model Run sources, the default segment is
model_id. - For dbt Test Result sources, the default segments are
model_idandtest_name.