Your Dynatrace environment can integrate with a Slack workspace using Slack Connector
. You can automate sending messages to Slack based on the events and schedules defined for your workflow.
Slack is sunsetting the file upload endpoint. If you installed and configured Slack Connector after June 10, 2024, and followed all the steps described in Set up Slack integration, no additional action is needed.
If you have installed Slack Connector before June 10, 2024, you must adapt to the change
Install the latest version of Slack Connector.
Add a New host pattern in External requests.
External requests enable outbound network connections from your Dynatrace environment to external services. They allow you to control access to public endpoints from the AppEngine with app functions and functions in Dashboards, Notebooks, and Automations.
Go to
Settings > General > Environment management, External requests.
Select New host pattern.
Add the domain names.
Select Add.
This way you can granularly control the web services your functions can connect to.
You need to add these domain names slack.com and files.slack.com.
Add the files:read permission to your Slack app.
files:read.The bot token you're using for the connection should not be affected by this change.
External requests enable outbound network connections from your Dynatrace environment to external services. They allow you to control access to public endpoints from the AppEngine with app functions and functions in Dashboards, Notebooks, and Automations.
Go to
Settings > General > Environment management, External requests.
Select New host pattern.
Add the domain names.
Select Add.
This way you can granularly control the web services your functions can connect to.
Some permissions are required by Workflows to run actions on your behalf. Other permissions are required by actions that come bundled with Slack Connector itself.
To fine-tune permissions granted to Workflows
app-settings:objects:readapp-settings:objects:writestate:app-states:readstate:app-states:writestate:app-states:deletestate:user-app-states:readstate:user-app-states:writestate:user-app-states:deleteFor more on general Workflows user permissions, see User permissions for workflows.
For Slack Connector workflow actions to interact with your Slack workspace, you first need to create a Slack App for Dynatrace and authorize its connection to Slack.
Go to Slack API and select Create an App.
In the Create an app window, select From an app manifest.
In the Pick a workspace to develop your app window, select the Slack workspace you want to connect to and select Next.
In the Enter app manifest below window, paste the manifest YAML provided below into the YAML tab.
Replace <app-name> and <bot-name> with values of your choice (for example, Dynatrace). For more information on the manifest YAML, see Slack documentation.
display_information:name: <app-name>features:bot_user:display_name: <bot-name>always_online: falseoauth_config:scopes:bot:- channels:history- channels:join- channels:read- chat:write- chat:write.public- files:read- files:write- groups:history- groups:read- im:history- im:read- mpim:history- mpim:read- reactions:read- reactions:writesettings:org_deploy_enabled: falsesocket_mode_enabled: falsetoken_rotation_enabled: false
Your Dynatrace Slack Connector requires an OAuth token to authorize sending messages to Slack.
and select slack and select Send message.The following are solutions to problems some people had with Slack integration.