- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
Integrate Datadog with Slack to:
/invite @Datadog
to ensure the Datadog app is a member. After completing this step, the channel will be automatically added to the integration tile.After the Datadog app is installed, you can use the /datadog
command in any Slack channel. The available actions change depending on the channel you’re in. Use /datadog help
to view all available commands. You can also use the /dd
alias to run /datadog
commands.
To limit which users can edit a specific workspace, see Limit edit access.
/invite @Datadog for Government
to ensure the Datadog for Government app is a member. After completing this step, the channel will be automatically added to the integration tile.After the Datadog app is installed, you can use the /datadog-gov
command in any Slack channel. The available actions change depending on the channel you’re in. Use /datadog-gov help
to view all available commands. You can also use the /dd-gov
alias to run /datadog-gov
commands.
To limit which users can edit a specific workspace, see Limit edit access.
Use the integration tile on the Datadog site to install the integration.
In your Slack account, go to the Datadog (Legacy) app.
Click Install > Add Integration, then copy the Slack Webhook URL.
On the integration tile, click Configuration, then click Add Account.
Enter a Slack Account Name of your choice.
Paste the webhook URL in the Slack Account Hook field.
Click Save.
Add your Slack Channels to post to:
You can also send notifications to Slack from monitors and events.
With the integration, you can receive monitor alerts and mute monitors directly from Slack. For detailed instructions on how to create monitors, see Configuring Monitors. To send monitor alerts to a Slack channel, invite Datadog to the channel first using the /invite @Datadog
command.
You can use the same rules, variables, and tags as standard Datadog Notifications. For example, this notification pings a team in a Slack channel called infrastructure
when a monitor is renotifying:
CPU usage has exceeded {{warn_threshold}} on {{ @machine_id.name }}.
{{#is_renotify}}
Notifying @slack-infrastructure <!subteam^12345>
{{/is_renotify}}
To specify a Slack channel when configuring a notification message, type @slack
in the monitor message box to see the available list of channels you can send the notification to.
Note: Trailing special characters in a channel name are not supported for Slack @-notifications. For example, @----critical_alerts
works, but @--critical_alerts--
does not.
Use the following commands to create @-mentions in notification messages:
<@username>
@slack-SLACK_CHANNEL <@USERNAME>
, or @slack-SLACK_ACCOUNT-SLACK_CHANNEL <@USERNAME>
.<!here>
<!channel>
<!subteam^GROUP_ID>
<!subteam^12345>
for a user group with an ID of 12345
. To find the GROUP_ID
, navigate to More > Your organization > People > User groups. Select a user group, click the ellipsis, and select Copy group ID. You can also query the usergroups.list
API endpoint.You can also use message template variables to dynamically build @-mentions. For example, if the rendered variable corresponds to a specific channel in Slack:
@slack-{{owner.name}}
sends notifications to the #owner.name’s channel.@slack-{{host.name}}
sends notifications to the #host.name channel.To create @-mentions that go to specific email addresses:
@team-{{team.name}}@company.com
sends an email to the team’s mailing list.When a monitor alert is sent a Slack channel, it contains several fields:
To customize the content included in monitor alert messages in Slack, navigate to the integration tile. For each channel, select or clear the checkbox for each monitor alert option.
If your monitors are using legacy Slack Webhooks, there are two ways you can update your monitors to be sent from the Datadog app:
You can post dashboard widget snapshots to any Slack channel.
To share a dashboard widget in Slack:
CMD + C
or CTRL + C
, or click the Copy button from the share menu, and then paste the link into Slack./datadog dashboard
or /datadog
command, and then click the Share Dashboard Widget button. For a list of supported widgets, see Scheduled Reports.Note: Slack recently introduced a new version of Workflow Builder that does not yet support third-party app integrations including Datadog.
Use the Home tab on the Datadog App in Slack to view your starred dashboards, notebooks, and services. You can also view a list of monitors that were triggered in the past 24 hours and their associated Slack channels. If you’re a member of more than one Datadog account, filter the tab by switching between accounts.
Anyone in your Slack organization can declare an incident, even if they don’t have access to Datadog. When an incident is declared, Datadog automatically creates a dedicated Slack channel named #incident-(unique number ID)
. A message is posted to announce the new channel, and the channel topic updates as the incident progresses.
For more information on how to use Slack with Incident Management—including incident declaration, channel automation, message syncing, responder management, and notification settings—see the Slack integration documentation.
With the Slack trigger in Workflow Automation, you can run a workflow directly from Slack.
To run a workflow from Slack:
/datadog workflow
By default, all users have full access to connected Slack workspaces.
Use Granular Access Control to limit which roles can edit a specific workspace:
Note: To maintain your edit access to the workspace, you must include at least one role you belong to before saving.
If you have edit access, you can restore general access to a restricted workspace by completing the following steps:
Datadog for Slack requires the following OAuth Scopes. See the Slack permission scopes documentation for more information.
Scopes | Request Reason |
---|---|
channels:join | Automatically join public channels configured in the integration tile in Datadog. |
channels:manage | Create channels to manage and remediate incidents using Datadog Incident Management. |
channels:read | Provides channel name auto-complete suggestions in the integration tile in Datadog. |
chat:write | Receive Datadog alerts and notifications in approved channels and conversations. |
commands | Enables the /datadog command, and its /dd alias, to perform actions in Datadog. |
groups:read | Provides channel name auto-complete suggestions for private channels in the integration tile in Datadog. |
im:history | Allows Datadog to send messages to you in the Messages tab, for example, onboarding instructions. |
im:read | Enables the /datadog command, and /dd alias, to perform actions in Datadog from direct messages. |
im:write | Receive messages, prompts, and errors from the Datadog bot related to your Datadog account. |
links:read | Unfurls Datadog links in conversations with additional information like graphs and log samples. |
links:write | Unfurls Datadog links in conversations with additional information like graphs and log samples. |
mpim:read | Enables the /datadog command, and /dd alias, to perform actions in Datadog from group direct messages. |
reactions:write | Adds an emoji reaction to messages that have been added to an incident timeline by shortcut. |
remote_files:read | Allows reading Datadog-hosted PDF reports, such as dashboards, that were shared with configured Slack channels. |
remote_files:share | Allows sharing Datadog-hosted PDF reports, such as dashboards, with configured Slack channels. |
remote_files:write | Allows uploading links to Datadog-hosted PDF reports, such as dashboards, to configured workspaces. |
team:read | Keep the integration tile in Datadog up to date with the state of your workspace. |
users:read | Perform actions from Slack as a Datadog user associating with Datadog account. |
users:read.email | Adding messaging and users for incidents created outside of Slack in Datadog. |
Datadog for Slack offers features that require enabling additional optional Bot Token Scopes. These scopes are added dynamically based on feature enablement and are not added during the initial installation.
Scopes | Request Reason |
---|---|
channels:history | Automatically sync messages from an incident channel to the incident timeline. |
groups:write | Create private channels to manage and remediate incidents using Datadog Incident Management. |
pins:write | Create pins in incident channels for relevant Datadog incident links and resources. |
bookmarks:write | Bookmark important links in an incident channel during the response process. |
bookmarks:read | Edit bookmarks for important links when they change. |
files:read | Sync images from an incident channel to the incident timeline. |
calls:write | Send a meeting notification in the channel when an incident meeting has been started. |
Scopes | Request Reason |
---|---|
openid | Perform actions in Datadog from Slack by connecting your Datadog account. |
Datadog for Slack offers features that require enabling additional optional User Token Scopes. These scopes are added dynamically based on feature enablement and are not added during the initial installation.
Scopes | Request Reason |
---|---|
auditlogs:read | Collect enterprise grid audit logs to view in Datadog Cloud SIEM. |
Ingest events and actions that occur within your Slack Enterprise Grid.
Only owners of an Enterprise Grid organization may authorize Datadog to collect Slack audit logs.
Each event captured provides detailed insights, including:
For more information, see the official Slack documentation.
The integration for Slack does not provide any metrics.
The integration for Slack does not include any events.
The integration for Slack does not include any service checks.
Need help? Contact Datadog support.
추가 유용한 문서, 링크 및 기사: