on-run-end
hooks to log results and metadata to tables in the Elementary schema.
on-run-end
hooks?on-run-end
hooks, we add a built-in collection of the latest results and metadata as part of your runs.
This means the results you see in Elementary report and the alerts you receive are full, up-to-date and accurate.
We strongly recommend not to disable the hooks for environments you want to monitor using Elementary.
on-run-end
hooks?on-run-end
hooks Elementary extracts data from the dbt results
and graph
objects, and runs SQL queries to load this data to the Elementary models.
There are 2 types of models that Elementary updates :
dbt_models
, dbt_tests
, dbt_sources
.dbt_run_results
, elementary_test_results
, dbt_invocations
.on-run-end
hook runs SQL queries with the new metadata and updates the relevant tables.
on-run-end
hook runs SQL queries with the run results and invocation details.
on-run-end
hooksdbt 1.4.0
and above, we maintain a metadata cache. This means each of these models are only updated with changes in your project (new model, change in config, etc.).
The first time you execute Elementary the initial update might take a while, but the following updates should be quick.
For dbt 1.3.0
and lower, these models would be fully updated on each run.
The performance impact depends on the size of your dbt project.
We strongly recommend Elementary users to use a dbt version of 1.4.0 or above.
What should I do if I can't upgrade to 1.4.0+?
dbt run --select edr.dbt_artifacts
upon merging PRs.on-run-end
hooks?dbt run --select elementary.edr.dbt_artifacts
every time you deploy changes to your
project.--vars '{"disable_dbt_artifacts_autoupload": true}'
to your command line.