Skip to main content

Customizing the package settings

Following settings can be overriden to customize the package configuration. To do so, you can set the following variables in your dbt_project.yml file or use environment variables.

Environment

VariableEnvironment VariableDescriptionDefault
input_gcp_projectsDBT_BQ_MONITORING_GCP_PROJECTSList of GCP projects to monitor[]
bq_regionDBT_BQ_MONITORING_REGIONRegion where the monitored projects are locatedus

Pricing

VariableEnvironment VariableDescriptionDefault
use_flat_pricingDBT_BQ_MONITORING_USE_FLAT_PRICINGWhether to use flat pricing or nottrue
per_billed_tb_priceDBT_BQ_MONITORING_PER_BILLED_TB_PRICEPrice in US dollars per billed TB of data processed6.25
free_tb_per_monthDBT_BQ_MONITORING_FREE_TB_PER_MONTHFree on demand compute quota TB per month1
hourly_slot_priceDBT_BQ_MONITORING_HOURLY_SLOT_PRICEHourly price in US dollars per slot per hour0.04
active_logical_storage_gb_priceDBT_BQ_MONITORING_ACTIVE_LOGICAL_STORAGE_GB_PRICEMonthly price in US dollars per active logical storage GB0.02
long_term_logical_storage_gb_priceDBT_BQ_MONITORING_LONG_TERM_LOGICAL_STORAGE_GB_PRICEMonthly price in US dollars per long term logical storage GB0.01
active_physical_storage_gb_priceDBT_BQ_MONITORING_ACTIVE_PHYSICAL_STORAGE_GB_PRICEMonthly price in US dollars per active physical storage GB0.04
long_term_physical_storage_gb_priceDBT_BQ_MONITORING_LONG_TERM_PHYSICAL_STORAGE_GB_PRICEMonthly price in US dollars per long term physical storage GB0.02
bi_engine_gb_hourly_priceDBT_BQ_MONITORING_BI_ENGINE_GB_HOURLY_PRICEHourly price in US dollars per BI engine GB of memory0.0416
free_storage_gb_per_monthDBT_BQ_MONITORING_FREE_STORAGE_GB_PER_MONTHFree storage GB per month10

Package

These settings are used to configure how dbt will run and materialize the models.

VariableEnvironment VariableDescriptionDefault
lookback_window_daysDBT_BQ_MONITORING_LOOKBACK_WINDOW_DAYSNumber of days to look back for monitoring7
lookback_incremental_billing_window_daysDBT_BQ_MONITORING_LOOKBACK_INCREMENTAL_BILLING_WINDOW_DAYSNumber of days to look back for monitoring3
output_limit_sizeDBT_BQ_MONITORING_OUTPUT_LIMIT_SIZELimit size to use for the models1000
output_partition_expiration_daysDBT_BQ_MONITORING_OUTPUT_LIMIT_SIZEDefault table expiration in days for incremental models365 days
use_copy_partitionsDBT_BQ_MONITORING_USE_COPY_PARTITIONSWhether to use copy partitions or nottrue
google_information_schema_model_materializationDBT_BQ_MONITORING_GOOGLE_INFORMATION_SCHEMA_MODELS_MATERIALIZATIONWhether to use a specific materialization for information schema models. Note that it doesn't work in project mode as it will materialize intermediate tables to avoid issues from BQ when too many projects are used.ephemeral

GCP Billing export configuration

See GCP Billing export for more information.

VariableEnvironment VariableDescriptionDefault
enable_gcp_billing_exportDBT_BQ_MONITORING_ENABLE_GCP_BILLING_EXPORTToggle to enable GCP billing export monitoringfalse
gcp_billing_export_storage_projectDBT_BQ_MONITORING_GCP_BILLING_EXPORT_STORAGE_PROJECTThe GCP project where billing export data is stored'placeholder' if enabled, None otherwise
gcp_billing_export_datasetDBT_BQ_MONITORING_GCP_BILLING_EXPORT_DATASETThe dataset for GCP billing export data'placeholder' if enabled, None otherwise
gcp_billing_export_tableDBT_BQ_MONITORING_GCP_BILLING_EXPORT_TABLEThe table for GCP billing export data'placeholder' if enabled, None otherwise

GCP BigQuery Audit logs configuration

See GCP BigQuery Audit logs for more information.

VariableEnvironment VariableDescriptionDefault
enable_gcp_bigquery_audit_logsDBT_BQ_MONITORING_ENABLE_GCP_BIGQUERY_AUDIT_LOGSToggle to enable GCP BigQuery Audit logs monitoringfalse
gcp_bigquery_audit_logs_storage_projectDBT_BQ_MONITORING_GCP_BIGQUERY_AUDIT_LOGS_STORAGE_PROJECTThe GCP project where BigQuery Audit logs data is stored'placeholder' if enabled, None otherwise
gcp_bigquery_audit_logs_datasetDBT_BQ_MONITORING_GCP_BIGQUERY_AUDIT_LOGS_DATASETThe dataset for BigQuery Audit logs data'placeholder' if enabled, None otherwise
gcp_bigquery_audit_logs_tableDBT_BQ_MONITORING_GCP_BIGQUERY_AUDIT_LOGS_TABLEThe table for BigQuery Audit logs data'placeholder' if enabled, None otherwise
should_combine_audit_logs_and_information_schemaDBT_BQ_MONITORING_SHOULD_COMBINE_AUDIT_LOGS_AND_INFORMATION_SCHEMAWhether to combine the audit logs and information schema datafalse