In Elementary 0.23.x, what is the equivalent of th...
# ask-elementary-ai
l
In Elementary 0.23.x, what is the equivalent of the old --select last_invocations option for edr monitor? I want to send Slack alerts only for the most recent dbt invocation, not for all historical test results. What CLI options should I use?
k
Based on the knowledge sources, here's what's available for filtering
edr monitor
to the most recent invocation: Key Limitation: No Invocation Filter for edr monitor
edr monitor
does not support invocation-based filtering. This is explicitly confirmed by Elementary support staff: > "`edr monitor` does not have an invocation filter, but can be filtered by tags (
-fl tags:elementary
,
--select
was deprecated)." [send-report/monitor Slack] Note: The
--select last_invocation
option exists for
edr report
/
edr send-report
, but not for
edr monitor
. Recommended Workarounds 1. Run edr monitor after every dbt execution (recommended) Since Elementary marks alerts as "sent" after each
edr monitor
run, running it immediately after each dbt invocation ensures you only get alerts for that run's results. This is the approach the Elementary team recommends:
Copy code
dbt build --select <your_models>
edr monitor --slack-token <your_token> --slack-channel-name <your_channel>
[false alarms Slack] 2. Use --days-back 0 to limit the time window This restricts alerts to only today's results:
Copy code
edr monitor --days-back 0 --slack-token <your_token> --slack-channel-name <your_channel>
[days-back tip] 3. Use tag-based filters If your dbt runs use tags, you can scope alerts to specific runs:
Copy code
edr monitor --filters tags:<your_tag> --slack-token <your_token> --slack-channel-name <your_channel>
[alerts configuration] In summary, there is no direct equivalent of
--select last_invocation
for
edr monitor
. The most reliable approach is to run
edr monitor
immediately after each dbt invocation. 👍 0 button 👎 0 button â„šī¸ Tip: Mention @elementary.ai in the thread for follow-ups or DM the app for 1-to-1 help.
l
@kapa.ai cosa ha di nuovo elementary oss 0.23.0 rispesso a 0.19.3??
k
message has been deleted