Skip to main content

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:

  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)

Next, 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 1
  3. 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.

Sample channel with alert details in Slack app