-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support disabling dbt "Anonymous usage stats" #724
Comments
🤖 Hello @ykuc, Nice to meet you! I'm Dosu, a helpful bot here to assist you with bugs, answer your questions, and guide you on contributing to the Cosmos repository. While we wait for a human maintainer, feel free to ask anything you need. Let's make your open-source journey smoother together! To disable anonymous usage stats in dbt, you need to add the name: 'jaffle_shop'
config-version: 2
version: '0.1'
profile: 'jaffle_shop'
model-paths: ["models"]
seed-paths: ["seeds"]
test-paths: ["tests"]
analysis-paths: ["analysis"]
macro-paths: ["macros"]
target-path: "target"
clean-targets:
- "target"
- "dbt_modules"
- "logs"
require-dbt-version: [">=1.0.0", "<2.0.0"]
models:
jaffle_shop:
materialized: table
staging:
materialized: view
quoting:
identifier: true
send_anonymous_usage_stats: False Please note that the Regarding your question about the Cosmos repository, it does not provide a way to configure dbt settings such as However, dbt settings are typically configured in the For more information, you can refer to the Cosmos repository and the dbt documentation. I hope this helps! If you have any other questions, feel free to ask. Best, SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
This is a great issue you brought up @ykuc since any cosmos profiles that are mapped from Airflow connections won't have the following block for dbt usage stats in the profiles.yml: config:
send_anonymous_usage_stats: False which means it defaults to True when not used. There are 2 workarounds you could have at the moment for preventing anonymous usage stats tracking:
In Cosmos to add support for not sending usage stats, I think this could be added to astronomer-cosmos/cosmos/profiles/base.py Lines 175 to 180 in e1f34ea
@ykuc if you would like to contribute to add this and improve Cosmos it would be much appreciated! |
) Since dbt by default tracks events by sending anonymous statistic usage when dbt is invoked, users who currently use Cosmos profile mapping can only opt-out by setting environment variables as described in #724 (comment) This PR adds a new arg to the profile mapping so that the [dbt recommended config block](https://docs.getdbt.com/reference/global-configs/usage-stats) can be added in the generated `profiles.yml` file: ```yaml config: send_anonymous_usage_stats: False ``` Closes: #724
…stronomer#768) Since dbt by default tracks events by sending anonymous statistic usage when dbt is invoked, users who currently use Cosmos profile mapping can only opt-out by setting environment variables as described in astronomer#724 (comment) This PR adds a new arg to the profile mapping so that the [dbt recommended config block](https://docs.getdbt.com/reference/global-configs/usage-stats) can be added in the generated `profiles.yml` file: ```yaml config: send_anonymous_usage_stats: False ``` Closes: astronomer#724
…stronomer#768) Since dbt by default tracks events by sending anonymous statistic usage when dbt is invoked, users who currently use Cosmos profile mapping can only opt-out by setting environment variables as described in astronomer#724 (comment) This PR adds a new arg to the profile mapping so that the [dbt recommended config block](https://docs.getdbt.com/reference/global-configs/usage-stats) can be added in the generated `profiles.yml` file: ```yaml config: send_anonymous_usage_stats: False ``` Closes: astronomer#724
…stronomer#768) Since dbt by default tracks events by sending anonymous statistic usage when dbt is invoked, users who currently use Cosmos profile mapping can only opt-out by setting environment variables as described in astronomer#724 (comment) This PR adds a new arg to the profile mapping so that the [dbt recommended config block](https://docs.getdbt.com/reference/global-configs/usage-stats) can be added in the generated `profiles.yml` file: ```yaml config: send_anonymous_usage_stats: False ``` Closes: astronomer#724
How can I set send_anonymous_usage_stats=False?
https://docs.getdbt.com/reference/global-configs/usage-stats
The text was updated successfully, but these errors were encountered: