Slack-based Triggers
There are two ways to trigger a playbook run from Slack:
- Using a Slack command to run a playbook
- Creating a workflow that's configured to run against a specific alert
Trigger through a Slack Command
This feature is available in Playbook version v1.4.23 or higher. Upgrade to the latest version and update the slack app manifest to access this feature.
Step 1: Add/Update Slack App using the manifest
- Login to the platform, and select Slack in integrations page.
- Click on Get Manifest button, copy the manifest and create a new Doctor Droid slack bot (or update an existing one)
- Add the bot to a slack channel by typing "@MyDroid" or "@Doctor Droid" or any other name that you defined while creating the Slack App
Step 2: Execute your playbooks
- Use the following command in the channel and get a summary of the Playbook in your channel
/execute_playbook [Your Playbook Name]
Trigger with Workflow
Step 1: Add app in your slack channels
Add bot to relevant Slack channel where you want to enrich alerts by typing "@MyDroid" or "@Doctor Droid" or any other name that you defined while creating the Slack App.
Now your Slack App and playbooks backend are connected.
Step 2: Create Workflow to automate enrichment
-
Select the filter criteria for your alerts - Go to create workflow and filter the alerts you want to enrich.
- The string entered in "Filter" will be searched within your alert text while evaluating if the workflow needs to be triggered for a specific alert or not.
-
Link a Playbook to the workflow. In case you have not yet created a playbook, read this guide on how to create a Playbook.
-
Setup Schedule - Once the alert criteria and playbook are selected, choose how you want to execute this playbook. Schedule options available:
- Execute only once post the alert comes.
- Execute it periodically after a fixed interval for a certain duration. (Every 15 minutes for next 4 hours)
- Choose a custom cron schedule of your choice. (The cron schedule will work in UTC timezone) (* 5 * * *)
Updated 3 months ago