For users of dbt version 1.8 and above
dbt_project.yml file:
dbt_project.yml
source-freshness results, just like any other test results.
For dbt version under 1.8
dbt source-freshness are not automatically collected.
You can collect the results using the Elementary CLI tool.
If dbt source freshness results are collected, they will be presented in the UI, and in alerts upon failure.
dbt core users
To alert on source freshness, you will need to run the following command:dbt source freshness and before executing edr monitor.
This operation will upload the results to a table, and the execution of edr monitor will send the actual alert.
- Note that
dbt source freshnessandupload-source-freshnessneeds to run from the same machine. - Note that
upload-source-freshnessrequires passing--project-dirargument.