Slack integration

With a Slack problem-notification integration, your teams will always be aware of potential risks within applications, services, and infrastructure. Your teams can also use a Dynatrace-integrated Slack channel to discuss incidents, evaluate solutions, and link to similar problems.

Before you begin

To set up a Slack problem-notification integration, generate the Slack Incoming Webhook and save the Webhook URL in Dynatrace.

Set up Webhook in Dynatrace

  1. Sign in to your Slack instance as an admin to generate a new Incoming Webhook for Dynatrace. If you don't have admin rights, ask your Slack admin to create a new Incoming Webhook.
    Note: The Slack Incoming Webhook URL created by the Slack admin is tied to a specific user and channel. If a user account or a channel is removed, you'll need to ask the Slack admin to regenerate the Webhook URL using an existing account and channel. For more information, see Sending messages using Incoming Webhooks in the Slack documentation.
  2. Copy the generated Webhook URL to your clipboard. The Webhook URL should look like this: https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX.
  3. In the Dynatrace menu, go to Settings > Integration > Problem notifications.
  4. Select Add notification.
  5. Select Slack from the available notification types.
  6. Enter the following information:
    • Display name This is the freeform name of this integration that will be displayed in Dynatrace on Settings > Integration > Problem notifications when you finish this configuration.

    • URL Paste the webhook URL

    • Channel Enter the name of a Slack channel

    • Message Enter a custom message; it can contain text and problem-related placeholders

      Placeholders

      The Available placeholders section of the configuration page lists placeholders you can use for this integration. Placeholders are automatically replaced with actual values.

  7. Assign an Alerting profile.
  8. Select Send test notification to make sure your Slack integration is working.
  9. Save changes.

You will receive Dynatrace problem notifications on your Slack channel with your custom message.

Troubleshooting

The Slack Incoming Webhook URL created by the Slack admin is specific to a single user and a single channel. If an existing webhook is tied to an account that is no longer active, the webhook URL will be invalid, the integration will be broken, and you will no longer receive messages on that Slack channel. This could be the case when you have a working webhook URL and an account is removed from Slack. If this occurs, the Slack admin will need to generate a new webhook URL using a valid account and channel. Once a new URL is generated, update the webhook URL in Dynatrace and test the connection.