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
- See Slack's documentation about Incoming Webhooks.
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 Sending messages using Incoming Webhooks in the Slack documentation.
- 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.
- Select Set up notifications and 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 placeholdersPlaceholders
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.
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.