Skip to content

Instantly share code, notes, and snippets.

@IDoneShaveIt
IDoneShaveIt / dbt_project.yml
Created July 11, 2022 08:50
dbt_project yaml that contains all available elementary vars
# optional #
# Global vars for data monitoring#
vars:
days_back: 14 # maximum timeframe for collecting metrics and analyzing anomalies
anomaly_score_threshold: 3 # sensitivity of anomaly detection
backfill_days: 2 # days to backfill on each run, adjust to your data delays
elementary_alerts_ignore_warn: true # ignorning tests warning (alerting only failures and errors)
@IDoneShaveIt
IDoneShaveIt / dbt_project.yml
Last active July 11, 2022 08:50
dbt_project yaml that disable elementary alerts on tests warnings
models:
## elementary models will be created in the schema '<your_schema>_elementary'
## when you add a profile for CLI alerts, make sure to configure this schema and db
## see docs: https://docs.elementary-data.com/
elementary:
+schema: 'elementary'
on-run-end:
- "{{ elementary.upload_dbt_artifacts(results) }}"
@IDoneShaveIt
IDoneShaveIt / packages.yml
Created July 11, 2022 08:27
dbt packages yaml that contains elementary
packages:
- package: elementary-data/elementary
version: 0.4.2
## compatible with Elementary CLI version 0.4.2
## CLI: https://github.com/elementary-data/elementary
## see docs: https://docs.elementary-data.com/
@IDoneShaveIt
IDoneShaveIt / profiles.yml
Created July 11, 2022 06:43
Elementary dbt profiles yaml for redshift
## REDSHIFT ##
## By default, edr expects the profile name 'elementary'. ##
## ##
## For edr monitor: ##
## The database and schema of edr models. ##
## Check where 'alerts_data_monitoring' is to find it. ##
## ##
elementary:
@IDoneShaveIt
IDoneShaveIt / profiles.yml
Created July 11, 2022 06:41
Elementary profiles yaml for BIGQUERY
## BIGQUERY ##
## By default, edr expects the profile name 'elementary'. ##
## ##
## For edr monitor: ##
## The database and schema of edr models. ##
## Check where 'alerts_data_monitoring' is to find it. ##
## ##
## For edr lineage: ##
## Any database and schema will do. ##
@IDoneShaveIt
IDoneShaveIt / profiles.yml
Last active July 10, 2022 15:32
Elementary dbt profile for Snowflake
## SNOWFLAKE ##
## By default, edr expects the profile name 'elementary'. ##
## ##
## For edr monitor: ##
## The database and schema of edr models. ##
## Check where 'alerts_data_monitoring' is to find it. ##
## ##
## For edr lineage: ##
## Any database and schema will do. ##