Package: diqu
diquAutomate and streamline the alerting/ notification process for dbt test results using this versatile CLI companion tool. Receive detailed alerts & test metadata seamlessly on various platforms, promoting improved collaboration on dbt project issues 🐞🚀.Who is this forThis tool is designed for individuals or teams seeking to automate the management of their dbt project issues (test warnings, errors... etc) outside the dbt environment.FeaturesAutomated alerts and notifications based on recorded dbt test results.Built-in support for dq-tools and custom query input.Auto-labelsdeprecatedtests for quick & easy identification.Creates and updates Jira tickets with the latest tests' metadata.Sends succinct and informative messages to a dedicated Slack channel.dbt alert rant 🟢 🟡 🔴 ⚫"Run errors are red,Test warnings are yellow,Where's my bug alert,And joint bugfix workflow?"-- bydiquOG ContributorsSupported ModulesSources (DWH connections)SnowflakeCSV filePackage (parsing dbt test results)Custom queryAlert Modules (alert/ notification)JiraSlackInstallationpipinstalldiqu[--upgrade]📓NOTE: The required Data Warehouse (DWH) module should already be installed if you are usingdiquin a working dbt project. If not, please perform additional steps to install these DWH modules.
For example, if you're using Snowflake:pipinstall"snowflake-connector-python[pandas]"pipinstall"snowflake-connector-python[secure-local-storage]"Usagepreflight# define the query paramsexportISSUE_DEPRECATED_WINDOW_IN_DAYS=your_issue_deprecation_time_in_day,defaultto"3"exportISSUE_UPDATE_WINDOW_IN_DAYS=your_issue_historical_data_update_window_in_days,defaultto"14"# build dq-tools log tabledbtrun-sdq_toolsdiqualert--toslack--tojira04:33:17  diqu: INFO - Run with diqu==1.0.0 🏃
04:33:19  diqu: INFO - Using dbt project at: /path/to/dbt/project
04:33:19  diqu: INFO - Using dbt profiles.yml at: ~/.dbt
04:33:19  diqu: INFO - Using snowflake connection
04:33:19  diqu: INFO - Looking for the query in: ./dq_tools__get_test_results.sql
04:33:23  diqu: INFO - Alerting to: SLACK
04:33:23  diqu: INFO - ✅ Done > Slack
04:33:23  diqu: INFO - Alerting to: JIRA
04:33:23  diqu: INFO - ✅ Done > JIRAAlert Modules ConfigurationsSlackUse the environment variables to configure the Slack Channel:exportSLACK_TOKEN=your_tokenexportSLACK_CHANNEL=your_channel_name

diqualert--toslackJira BoardUse the environment variables to configure the JIRA Board:exportJIRA_SERVER=your_jira_servere.g.https://your_value.atlassian.net/exportJIRA_AUTH_USER=your_service_accounte.g.dqt_user@your_value.comexportJIRA_AUTH_PASSWORD=your_service_tokene.g.ATATTxxxxxexportJIRA_PROJECT_ID=your_project_ide.g.106413exportJIRA_ISSUE_TYPE=your_issue_type,defaultto"Bug"exportJIRA_OPEN_ISSUES_FILTER_BY_SUMMARY=your_issue_filter_on_title,defaultto"dq-tools"diqualert--tojira📖 For more details, please visitthe documentation site.Quick DemoHow to ContributeThis Auto Alert (diqu) tool is an open-source software. Whether you are a seasoned open-source contributor or a first-time committer, we welcome and encourage you to contribute code, documentation, ideas, or problem statements to this project.👉 SeeCONTRIBUTING guidelinefor more details or check outCONTRIBUTING.md🌟 And then, kudos toour beloved Contributors:About Infinite LambdaInfinite Lambda is a cloud and data consultancy. We build strategies, help organizations implement them, and pass on the expertise to look after the infrastructure.We are an Elite Snowflake Partner, a Platinum dbt Partner, and two-times Fivetran Innovation Partner of the Year for EMEA.Naturally, we love exploring innovative solutions and sharing knowledge, so go ahead and:🔧 Take a look around ourGit✏️ Browse ourtech blogWe are also chatty, so:👀 Follow us onLinkedIn👋🏼 Or justget in touch