Send Dynatrace notifications to Slack
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.
Set up Webhook in Dynatrace
- In Slack, create an Incoming Webhook, as described in the Slack documentation.
- Copy the generated Webhook URL to your clipboard. The Webhook URL should look like this:
https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
. - In the Dynatrace menu, go to Settings > Integration > Problem notifications.
- Select Add notification.
- Select Slack from the available notification types.
- 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.
- Assign an Alerting profile.
- Select Send test notification to make sure your Slack integration is working.
- 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.