Skip to main content

Sending Alerts to Slack

Many operations teams use Slack to notify themselves of production issues. You can configure Prismatic alert webhooks to send messages to a Slack channel.

Generate a Slack webhook

First, create an incoming webhook in your Slack workspace:

  1. Visit https://api.slack.com/apps
  2. Click Create New App and select your workspace
  3. Under Add features and functionality, select Incoming Webhooks
  4. Toggle Activate Incoming Webhooks to enable the feature
  5. Click Add New Webhook to Workspace and select your target channel
  6. Copy the generated Webhook URL (format: https://hooks.slack.com/services/foo/bar/baz)

Configure Prismatic alert webhook

Now, create a new alert webhook in Prismatic to send notifications to Slack:

  1. Create a new alert webhook in Prismatic
  2. Enter the Slack webhook URL from step 6 above
  3. Configure the payload template with the following JSON:
Slack webhook payload template
{
"text": "$NAME triggered - $INSTANCE failed to run. See $URL"
}

You don't need additional headers for Slack webhooks. Once configured, any alert monitor using this webhook will automatically send notifications to your specified Slack channel.

Slack channel showing Prismatic alert notification with instance name, error trigger, and link to execution details

Next steps

Now that you've configured Slack alerts, you can: