Get real-time status updates from Mage pipelines directly in your Slack channels.
metadata.yaml
.
metadata.yaml
file, add a section with the following
configuration or update the existing notification_config
section:
alert_on
section it will default to trigger_failure
and trigger_passed_sla
.
Options:
trigger_failure
: alert when a run of a trigger failstrigger_success
: alert when a run of a trigger succeedstrigger_passed_sla
: alert when a SLA is missed.
metadata.yaml
file, add the following values:
webhook_url
value to be the webhook URL you created from Slack.
notification_config
. Here is an example config:
success
, failure
, passed_sla
scenarios. For each message template,
you can specify either summary
or details
.
summary
, the slack message will be your summary
+ the url of the pipeline run pagedetails
, the details
will be used as your slack message directly{variable_name}
syntax.
Here are the supported variables:
execution_time
pipeline_run_url
pipeline_schedule_id
pipeline_schedule_name
pipeline_schedule_description
pipeline_uuid
error
failure
message templatestacktrace
failure
message templateNote: Forpipeline_run_url
, the default host ishttp://localhost:6789
. You can specifyMAGE_PUBLIC_HOST
to be the host url you want to use in the notification messages.
execution_time
, pipeline_uuid
, etc), you can also use the
following in your message templates in Mage Pro:
start_time
end_time
duration
(in seconds)env
(this gets the value stored in the ENV
environment variable)![]() |