CAB
11/03/2023, 5:17 PMenv_var('tenant_name') env_var('output_database_name') and so on.
Having said that, does Elementary supports differentiating between different runs based on variables and it is also possible to merge them as one, so that we can get the average "execute time" for our models across tenants, for example.
Thanks!Ofek Weiss
01/07/2024, 12:47 PMCAB
01/08/2024, 2:50 PMmake elementary yields a prompt where you can select a tenant, and when a tenant is selected, we boot up our dbt docker container with the selected information and generate the elementary reports. This makes is so that you can only see the information of one tenant at a time, as we override the previous html file.
Ideally, we would be able to see an aggregated report container the information of all tenants.
To explicitely answer your question; all project write in different elementary schema based on the tenant_name, tenant_environment.Ofek Weiss
01/08/2024, 2:55 PMunion_elementary_schema, which contains views that union the elementary schema from all of your tenants, and then running edr agains this schema.CAB
01/08/2024, 2:57 PMOfek Weiss
01/08/2024, 3:04 PMdbt_project.yml according to the env variables, that way the identifiers would be different, something like
name: 'my_project_{{env_var("tenant_name")}}_{{env_var("output_database_name"}}'CAB
01/08/2024, 3:06 PMOfek Weiss
01/08/2024, 3:11 PMCAB
01/08/2024, 3:13 PM