Hello all :wave: Is there a way to send the elemen...
# community-support
p
Hello all 👋 Is there a way to send the elementary report summary to slack but instead of sending the html report as an attachment, just provide a URL to where we host the report internally? One way of doing this would be providing a custom message but I didn’t find this functionality. Note, we’re not using elementary’s native functionality to save the report to s3 (explained here) for security reasons. Hope someone can help đŸ„č
j
Hi @Peter, This is not something that is offered in the open source package. In the cloud version we do and you can do alert-routing and raise incidents etc. However, slack does offer webhooks that allow you to send a custom message to a channel. You could think of making this part of your cicd (or wherever you run
dbt run
,
dbt test
,
edr report
. Let me know if that makes sense
p
hey @Joost Boonzajer Flaes, thanks for your response. That’s a very good point, thanks for raising it, I’ll consider implementing that.
On the other hand, when I looked more closely at
edr send-report
’s man page, I found two options that might help:
--report-url
and
--disable html_attachment
. I wasn’t able yet to test this out but do you know for sure if this is not achieving what I’m looking for?
j
Yes good catch and to be honest I'm not sure if it will work since you are not using the native functionality of hosting on s3, but I would say try it out! 😄 Curious to hear if it works
p
a’ight, so I did try this, this is the command I ran:
Copy code
edr send-report \
    --slack-token "<replace-with-slack-token>" \
    --slack-channel-name data-ops \
    -t prod \
    --env prod \
    --slack-file-name "dbt-elementary-daily-report.html" \
    --disable-samples true \
    --report-url "<replace-with-url>" \
    --disable html_attachment
But it didn’t work. The html report wasn’t attached as expected, but I also expected the URL to be included somewhere and it wasn’t. Also, the text remained “Please checkout the attached report [
]” which doesn’t make a lot of sense when using the
--disable html_attachment
flag.
An update: I’ve now tried two other flags: 1.
--slack-report-url
this says it will be deprecated soon and
--report-url
should replace it. I gave it a go anyhow but nothing has changed. I now have the feeling that the
--report-url
flag only works if you share your report using aws or google. I wish there was a capability where you generate and host the report otherwise and then share the url in the slack message 2.
--include
The docs says
Include additional information at the test results summary message. Currently only --include descriptions is supported
- however this didn’t work either, nothing has appeared. I’ve added
--include "random text\n[link](https:<insert-link-here>)
to be precise but the slack message did not change