Kelvin Brangissko
02/14/2024, 10:22 AMNoa Kurman
02/14/2024, 10:34 AMedr.log from the run where you expected to get alerted? Are you sure there are errors you should be alerted about?
About your second question - there is an open feature request about it - https://github.com/elementary-data/elementary/issues/1228
Some contributions on the way, but for now the answer is yes - you can only be notified using slackKelvin Brangissko
02/14/2024, 10:36 AMKelvin Brangissko
02/14/2024, 10:36 AMKelvin Brangissko
02/14/2024, 10:36 AMKelvin Brangissko
02/14/2024, 10:36 AMKelvin Brangissko
02/14/2024, 10:36 AMKelvin Brangissko
02/14/2024, 10:46 AMKelvin Brangissko
02/14/2024, 10:46 AMNoa Kurman
02/14/2024, 11:00 AM--group-by [table | alert] in your command? If so - try removing it. So the command should be edr monitor --slack-token <your_slack_token> --slack-channel-name <slack_channel_to_post_at>
• Can you change the order to be: dbt run -s elementary , dbt test and then edr monitor --slack-token <your_slack_token> --slack-channel-name <slack_channel_to_post_at> ?
• If all these doesn’t work I would really like to get the edr.log , you can grab it from from where you’re running you command -> edr_target/edr.logKelvin Brangissko
02/14/2024, 11:02 AMKelvin Brangissko
02/14/2024, 11:03 AMNoa Kurman
02/14/2024, 11:04 AMKelvin Brangissko
02/14/2024, 11:05 AMNoa Kurman
02/14/2024, 11:17 AMelementary_test_results table isn’t found, it might be a permissions issue but I’m guessing if you follow the steps in the quickstart I sent you you’ll see the table
The table is first created in the dbt run -s elementary and then being populated during the test runsKelvin Brangissko
02/14/2024, 11:20 AMKelvin Brangissko
02/14/2024, 11:35 AMNoa Kurman
02/14/2024, 11:55 AMalerts_dbt_models and alerts_models )
• Can you share which schema you see the elementary_test_results in?
• Also looking at the logs you can see there’s another error for this: (Pasting the error here for documentation as well) -
Unable to parse dbt log message: Initiating login request with your identity provider. A browser window should have opened for you to complete the login. If you can't see it, check existing browser windows, or your OS settings. Press CTRL+C to abort and try again...
Traceback (most recent call last):
File "/Users/brangisk/Projects/cgs/pulse-instrument-poc/.venv/lib/python3.9/site-packages/elementary/clients/dbt/dbt_log.py", line 35, in parse_dbt_output
yield DbtLog.from_log_line(log_line)
File "/Users/brangisk/Projects/cgs/pulse-instrument-poc/.venv/lib/python3.9/site-packages/elementary/clients/dbt/dbt_log.py", line 18, in from_log_line
log = json.loads(log_line)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Do you have any authentication using a browser in the process?Kelvin Brangissko
02/14/2024, 11:57 AMKelvin Brangissko
02/14/2024, 11:58 AMalerts_dbt_models and alerts_models ) -- this tables are emptyKelvin Brangissko
02/14/2024, 11:59 AMKelvin Brangissko
02/14/2024, 12:01 PMNoa Kurman
02/14/2024, 12:02 PMNoa Kurman
02/14/2024, 1:33 PMKelvin Brangissko
02/15/2024, 5:01 AMKelvin Brangissko
02/15/2024, 5:01 AMNoa Kurman
02/15/2024, 7:59 AM<schema_name>_elementary so if for example you’re working on snowflake and you snowflake profile schema is schema_name the elementary profile should be schema_name_elementary
Try changing it in your profile and run againNoa Kurman
02/15/2024, 1:54 PM_elementary suffix was missing from the schema name in the elementary profile, right now there’s a permissions issue for the user (no permissions to create the schema) which is being handled by @Kelvin Brangissko