Integrate Slack with Datadog Incident Management

Overview

Slack is a messaging and collaboration platform widely used by teams to communicate in real time. The Datadog Slack integration connects your incident response workflows directly to Slack, so teams can declare, manage, and resolve incidents without leaving their chat environment.

With the integration, you can:

  • Respond faster by declaring and updating incidents directly from Slack.
  • Collaborate in dedicated channels that sync messages and timelines across Slack and Datadog.
  • Streamline workflows with automations for channel creation, message syncing, and notifications.

The Slack integration documentation is organized around the typical lifecycle of using Slack with Incident Management:

  1. Install and connect Slack: Set up the integration between your Slack workspace and Datadog.
  2. Declare incidents: Learn how to start incidents using Slack commands or message actions.
  3. Manage incident channels: Use dedicated Slack channels with commands, syncing, and automations.
  4. Configure global notifications: Keep your organization informed with automatic updates.
  5. Manage incident tasks: Track, assign, and update tasks related to incidents directly from Slack channels.
  6. Reference Slack configurations and Slack commands: Explore detailed configuration options and see the full list of available Slack commands to tailor and streamline your incident response workflows.

Prerequisites

Install the integration through the Slack Integration tile. For more information, see the Slack integration documentation.

Setup

  1. After the integration is installed, navigate to Service Management > Incidents > Settings > Integrations.
  2. Select the Slack integration.
  3. Toggle Create Slack channels for incidents to enable the Slack feature for Incident Management.

Declaring incidents from Slack

When you connect a Slack workspace to a Datadog organization, users in the workspace can use slash commands and shortcuts related to Incident Management. To allow any Slack user or non-guest Slack user to declare incidents in your Slack workspace, enable Allow Slack users to declare incidents without a connected Datadog account in Incident Management settings.

To declare an incident from a Slack message, hover over the message, click More actions (the three vertical dots), and select Declare incident. Datadog posts a message to the original thread confirming the incident’s creation.

Anyone in your Slack organization 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.

You can also declare an incident with the following slash command:

/datadog incident

For a full list of channel commands, see the Incident channel commands section.

Incident channels

You can configure Incident Management to automatically create a dedicated Slack channel for each incident that meets your defined criteria.

After you enable this automation, you can define a channel name template for Datadog to follow when creating the channel. The following variables are available in channel name templates.

Channel name templates

You can define a template for Datadog to follow when creating the channel name. The following variables are available:

  • {{public_id}}: Incident’s numeric ID
  • {{title}}: Incident’s title
  • {{created}}: Incident’s creation date in format MM_DD_YYYY
  • {{yyyy}}: Incident’s four-digit creation year
  • {{mm}}: Incident’s two-digit creation month
  • {{dd}}: Incident’s two-digit creation day of month
  • {{random_adjective}}: Random adjective
  • {{random_noun}}: Random noun

Incident channel commands

You can run the slack commands to manage the incident from within the incident Slack channel. Commands allow you to make an incident private, or page the associated On-call team. For a full list of channel commands, see the Incident channel commands section.

Channel message syncing

Configure Incident Management to automatically push all messages from the incident Slack channel to the Datadog incident timeline. Alternatively, you can sync a message only when a user adds a pushpin (📌) reaction to it.

Any Slack user can author a synced message, and the message is still recorded in the incident timeline. For organizations with usage-based billing, these authors are not counted as monthly active users.

Global incident updates channel

A global 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.

To set up a global incident updates channel:

  1. In Datadog, navigate to the Incidents > Settings > Integrations page.
  2. In the Slack section, click the Send all incident updates to a global channel toggle.
  3. Select the Slack workspace and Slack channel where you want the incident updates to be posted.

Incident tasks

By using Slack actions and the /datadog Slack commands, you can create and manage incident tasks directly from Slack. Incident task commands must be used in an incident channel.

To create a task using Slack actions, hover 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.

To send the message to the Incident Timeline, use the message actions command (the three vertical dots that appear hovering over a message sent in an #incident channel).

Slack configuration

To show a list of all tasks created for the incident, use the following Slack command to list tasks and to mark tasks as complete or reopen them.

/datadog task list

For a full list of channel commands, see the Incident channel commands section.

Additional Slack configurations

Access all configuration options for Slack in Incident Management through the Incidents > Settings > Integrations page.

FeatureDescription & Notes
Push Slack channel messages to the incident timelineMirror messages from the incident Slack channel into the Datadog incident timeline.

Options: mirror all messages in real-time, or push only pinned (📌) messages.
Images supported (reauthorization required).
Push incident timeline messages to SlackAutomatically send incident timeline updates from Datadog to the Slack channel.

Keeps channel participants in sync with Datadog updates.
Add important links to channel bookmarksPost incident-related links in the Slack channel bookmarks.

Provides quick access to resources.
Add team members automaticallyWhen a Datadog team is added to the incident, its members are added to the Slack channel.

Based on emails in Datadog Teams.
Send incident updates to the Slack channelUpdate the channel topic and post updates when state, severity, or responders change.

Keeps channel metadata aligned with incident status.
Send a Slack notification when a meeting startsNotify the Slack channel when a meeting is started, with participants and a join link.

Enables quick access to incident calls.
Activate Bits AI in incident Slack channelsEnable AI features that use incident context from Datadog.

Applies to all incident types in the selected Slack workspace.
Send incident updates to a global channelPost updates (state, severity, title, commander changes) to a designated Slack channel.

Alternative: use Notification Rules for more customization.
Allow Slack users to declare incidents without a Datadog accountLet any non-guest Slack user declare incidents in the workspace.

Controlled in Incident Management settings.
Automatically archive Slack channels after resolutionClose out incident Slack channels once the incident is resolved.

Helps reduce channel clutter.

Slack incident commands

You can view the full list of available Slack commands at any time by typing /dd help or /datadog help in Slack. This will open the command reference directly in your Slack workspace. To open the action tray for common incident management actions, type /datadog.

CategoryCommandDescription
Declare an incident/datadogOpen the incident action tray to perform common actions.
/datadog incidentDeclare a new incident.
/datadog incident testDeclare a new test incident (if test incidents are enabled for the incident type).
/datadog incident listList all open (active and stable) incidents.
Manage incident channels/datadog incident updateUpdate the incident state (for example, severity).
/datadog incident notifyNotify @-handles about the incident.
/datadog incident privateMake the incident private (if private incidents are enabled).
/datadog incident respondersManage the incident's response team (add responders and manage types).
Manage incident tasks/datadog taskCreate a new incident task.
/datadog task listList existing incident tasks.

Further reading