Installation
Install Datadog for Slack 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. You may need your Slack workspace admin to approve this change one time.
Specify the channels where you want to receive monitor alerts.
Private channels only: In Slack, navigate to the channel where you want to receive monitor alerts and send /invite @Datadog
to the channel.
Datadog for Slack
is not available on the US1-FED site. See the Slack Webhook
documentation for setting up notifications to Slack on the US1-FED site.
Usage
Use the following command to see the Datadog actions you can take in a Slack channel:
You can also use the /dd
alias for running all /datadog
commands.
Once the app has been installed, you can invite the Slack app to any channel:
View all available commands in Slack using:
Link Unfurling
Some Datadog links shared in Slack are automatically unfurled to display a preview. Supported links include
log events, traces, and dashboard widgets. To share a dashboard widget, copy it to your clipboard by hovering over the widget and pressing
CMD + C
or CTRL + C
, or by clicking the Copy button from the share menu, and pasting the link into Slack.
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 Datadog for Slack, 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. You may need to remove duplicate references to the same channels.
You can post dashboard widget snapshots to any Slack channel without leaving Slack.
There are two ways you can share a dashboard widget from Slack:
On Demand: Use /datadog dashboard
or use /datadog
and click the Share Dashboard Widget button.
Workflow Builder: Datadog for Slack provides a Workflow Builder
step that allows you to post widget snapshots as part of your Slack automation workflows.
For a list of supported widgets, see Scheduled Reports
.
Using Datadog incidents
Declare a new incident from Slack with:
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 (such as 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
. For more information, see the Incident Management documentation
.