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
files.slack.com
(in addition to the already existing slack.com
). For more information, see Allow Slack for outbound connections.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.
To use Slack workflow actions, you first need to install Slack Connector from Dynatrace Hub.
After that, you need to perform some initial steps to set up the connection between Slack and your Dynatrace environment.
Allow Slack for outbound connections
Grant permissions to Workflows
Create Slack app
Authorize connection to Slack
slack.com
andfiles.slack.com
This way you can granularly control the web services your Dynatrace environment 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:read
app-settings:objects:write
state:app-states:read
state:app-states:write
state:app-states:delete
state:user-app-states:read
state:user-app-states:write
state:user-app-states:delete
For 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.
slack
and select Send message.The following are solutions to problems some people had with Slack integration.