Installation
If you are using the US1, US3, US5, or EU1 Datadog site, install the Datadog Slack app in your Slack workspace:
Navigate to the Slack integration tile under Integrations on the Datadog site. Click the Connect Slack Account button at the bottom of the tile.
Confirm your Slack and Datadog accounts are connected. Note: You may need your Datadog workspace admin to approve this change one time.
Note: The Slack App Directory Slack integration works only if you are using the US1, US3, US5, or EU1 Datadog site. For other regions, see the Slack Webhook documentation.
Usage
Once the app has been installed, you can invite the Slack app to any channel:
Then, connect your Datadog account to your Slack account:
Additional functionality allows you to bring parts of Datadog into Slack with a command.
You can also copy and paste any widget from Datadog to Slack, using CMD + C
or CTRL + C
, or clicking the expand icon on top of a widget, and clicking “copy”. When you paste, a link displays that unfurls as the widget once sent to the channel.
Connecting monitors
You can mute triggering monitors in Slack with the click of a button.
There are two ways you can update your monitors to be sent from the Slack app:
Bulk Update: You can bulk update all of your monitors to be sent from the Slack App, and include the muting buttons by clicking the “Upgrade” button at the top of the configuration for each of your Slack accounts in the integration tile in Datadog.
Manual: If you’d like to test this functionality before rolling it out to all of your teams, you can manually add the channels to the new app account configuration in the Slack integration configuration.
Note: You may need to remove duplicate references to the same channels.
Using Datadog incidents
Declare a new incident from the Slack App with:
Note: Anyone in your Slack org can declare an incident, regardless of whether they have access to Datadog.
When a new incident is created, a corresponding Slack channel #incident-(unique number ID)
is created, and a message is sent to the channel telling you the new incident channel to use. The channel topic changes with the incident.
Update the incident state (e.g. severity) with:
List all open (active and stable) incidents with:
Use the message actions command (three dots you can find after hovering over a message sent in an #incident channel on the far right) to send the message to the Incident App Timeline.
Incident updates channel
Using an incident updates channel provides your team with organization-wide visibility into the status of all incidents directly from your Slack workspace. Select which channel in your workspace to post these updates to, and the channel receives the following posts:
- Newly declared incidents.
- Changes to severity, status transition, and incident commander.
- Links to the incident’s overview page in app.
- Link to join dedicated incident Slack channels.
Once the Slack app has been installed, you can navigate to the Incident Settings page. From this, you can scroll down to the Incident Updates Channel section and begin the set-up flow.
After entering the Slack app, set the channel for your incident updates.
How to set up this channel:
- Navigate to Incidents Settings.
- Locate the Incident Updates Channel section.
- Define the Slack workspace and specific Slack channel for your incident updates.
Manage incident tasks
By using Slack Actions and the /datadog
Slack commands, you are able to create and manage incident tasks directly from Slack. Incident task commands must be used in an incident channel.
Slack Actions:
You can create tasks using Slack Actions by hovering over any message sent in an incident channel. On hover, three dots appear to the right of the message, allowing you to “Add Task to Incident”.
Available commands:
/datadog task
creates a task for the incident. You are provided with a modal to include a description of the task, assign teammates, and set a due date./datadog task list
shows a list of all tasks created for the incident. Use this list to mark tasks as complete or reopen them.
All tasks created can be managed in the ‘Remediation’ tab under “Incident Tasks” in the Incidents UI. See the Incident Management documentation for more information.