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
- Learn about the Incoming Webhooks Slack feature.
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
- 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.
- Copy the generated Webhook URL to your clipboard. The Webhook URL should look like this:
- In the Dynatrace web UI, go to Settings > Integration > Problem notifications.
- Click Set up notifications.
- Click Slack.
- On the Set up Slack integration page, paste the Webhook URL in the URL field.
- In the Channel field, select or type the name of a Slack channel.
- In the Title field, type a custom message template.
- Click Save.
You will receive Dynatrace problem notifications in your Slack channel with your custom message. The following screen is an example.
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.