Cosmos Config#
This page lists all available Airflow configurations that affect astronomer-cosmos Astronomer Cosmos behavior. They can be set in the airflow.cfg file or using environment variables.
Note
For more information, see Setting Configuration Options.
Sections:
[cosmos]
[openlineage]
[cosmos]#
- cache_dir:
The directory used for caching Cosmos data.
Default:
{TMPDIR}/cosmos_cache(where{TMPDIR}is the system temporary directory)Environment Variable:
AIRFLOW__COSMOS__CACHE_DIR
- enable_cache:
Enable or disable caching of Cosmos data.
Default:
TrueEnvironment Variable:
AIRFLOW__COSMOS__ENABLE_CACHE
- propagate_logs:
Whether to propagate logs in the Cosmos module.
Default:
TrueEnvironment Variable:
AIRFLOW__COSMOS__PROPAGATE_LOGS
- dbt_docs_dir:
The directory path for dbt documentation.
Default:
NoneEnvironment Variable:
AIRFLOW__COSMOS__DBT_DOCS_DIR
- dbt_docs_conn_id:
The connection ID for dbt documentation.
Default:
NoneEnvironment Variable:
AIRFLOW__COSMOS__DBT_DOCS_CONN_ID
[openlineage]#
- namespace:
The OpenLineage namespace for tracking lineage.
Default: If not configured in Airflow configuration, it falls back to the environment variable
OPENLINEAGE_NAMESPACE, otherwise it usesDEFAULT_OPENLINEAGE_NAMESPACE.Environment Variable:
AIRFLOW__OPENLINEAGE__NAMESPACE
Note
For more information, see Openlieage Configuration Options.
Environment Variables#
- LINEAGE_NAMESPACE:
The OpenLineage namespace for tracking lineage.
Default: If not configured in Airflow configuration, it falls back to the environment variable
OPENLINEAGE_NAMESPACE, otherwise it usesDEFAULT_OPENLINEAGE_NAMESPACE.