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 Incoming Webhooks in the Slack doc.
  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 web UI, go to Settings > Integration > Problem notifications.
  4. Click Set up notifications.
  5. Click Slack.
  6. On the Set up Slack integration page, paste the Webhook URL in the URL field.
  7. In the Channel field, select or type the name of a Slack channel.
  8. In the Title field, type a custom message template. The Messages field
  9. Click Save.

You will receive Dynatrace problem notifications in your Slack channel with your custom message. The following screen is an example. An example of Slack integration

The Slack Incoming Webhook URL created by the Slack Admin is specific to a single user, and a single channel. If an existing web hook is tied to an account that is no longer active, the web hook URL will no be valid and the integration will be broken and no longer sent messages to the Slack Channel. This might be the case when you have a working web hook URL and an account is removed from Slack. If this occurs the Slack Admin will need to regenerate a new web hook URL using a valid account and a valid channel. Once a new URL is regenerated, you will need to update the web hook URL in Dynatrace and test the connection.