Sending Alerts to Slack
Many operations teams use Slack to notify themselves of production issues. Prismatic alert webhooks can be configured to send messages to a Slack channel.
To send alerts as messages to Slack, first generate a new Slack webhook:
- Visit https://api.slack.com/apps
- Click Create New App and select your workspace
- Under Add features and functionality, select Incoming Webhooks
- Toggle Activate Incoming Webhooks to enable the feature
- Click Add New Webhook to Workspace and select your target channel
- Copy the generated Webhook URL (format:
https://hooks.slack.com/services/foo/bar/baz
)
Next, create a new alert webhook in Prismatic to send notifications to Slack.
- Create a new alert webhook in Prismatic
- Enter the Slack webhook URL from Step 1
- Configure the payload template with the following JSON:
{
"text": "$NAME triggered - $INSTANCE failed to run. See $URL"
}
No additional headers are required for Slack integration. Once configured, any alert monitor using this webhook will automatically send notifications to your specified Slack channel.
