Alerts
PipelineWise can send alerts to external systems on run failures by configuring
alert handlers in the main config.yml
. This config.yml
is created
automatically when Generating Sample Pipelines. Alerts triggered on
run_tap or sync_tables CLI command failures. The triggered
alert provides the id of the failed tap and a description about the failure
to the alert handler.
Warning
You can optionally disable alerts on certain taps by adding send_alert: False
optional entry to any tap YAML configuration file.
- Currently available alert handlers:
Slack Alert Handler
To send alerts to a Slack channel on failed tap runs:
Follow the instructions at Create a new Slack app and get a Bot user token.
Add the
chat:write
OAuth Scope to the app.Invite the bot to the channel by the
/invite <bot_name>
slack command.Configure the main
config.yml
Config parameters:
token
: Slack bot user tokenchannel
: Slack channel where the alerts will be sent
---
alert_handlers:
slack:
token: "slack-token"
channel: "#slack-channel"
To send a copy of alerts to the specific channel for a tap, beside the previous settings, you need to add below setting also in the tap config yaml file:
---
slack_alert_channel: "#specific-channel-for-this-tap"
VictorOps Alert Handler
To send alerts and open an incident on VictorOps:
Follow the instructions at Enable the VictorOps REST Endpoint and get the long notify URL.
Find your routing key in VictorOps settings page
Configure the main
config.yml
:Config parameters:
base_url
: The VictorOps notify URL without the routing keyrouting_key
: VictorOps routing key
---
alert_handlers:
victorops:
base_url: "https://alert.victorops.com/integrations/generic/.../alert/.../..."
routing_key: "victorops-routing-key"
Warning
Make sure the VictorOps base_url
does not include the routing_key
.