- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
Connect Slack to Datadog to help your team collaborate by:
/invite @Datadog
to ensure the Datadog app is a member. Upon completing this step, the channel will be automatically added to the Slack integration tile.Once the Slack integration 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.
Use the Slack 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 Slack 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 Slack 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 Slack integration tile. For each channel, select or clear the checkbox for each monitor alert option.
If your monitors are using the legacy Slack webhooks, there are two ways you can update your monitors to be sent from the Slack app:
You can post dashboard widget snapshots to any Slack channel. For a list of supported widgets, see Scheduled Reports.
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.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 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.
To declare a new incident from Slack:
/datadog incident
To update the incident state (such as severity):
/datadog incident update
To list all open (active and stable) incidents:
/datadog incident list
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).
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:
To set up a global incident updates channel:
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 create a task for an incident, use the /datadog task
command. A modal appears that allows you to include a description of the task, assign teammates, and set a due date.
To show a list of all tasks created for the incident, use the /datadog task list
command. Use this list to mark tasks as complete or reopen them.
All tasks created can be managed on the Remediation tab of an incident. For more information, see Incident Management.
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 Slack 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 Slack 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 Slack 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 | Coming soon: Allows reading Datadog-hosted PDF reports, such as dashboards, that were shared with configured Slack channels. |
remote_files:share | Coming soon: Allows sharing Datadog-hosted PDF reports, such as dashboards, with configured Slack channels. |
remote_files:write | Coming soon: Allows uploading links to Datadog-hosted PDF reports, such as dashboards, to configured workspaces. |
team:read | Keep the Slack 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. |
workflow.steps:execute | Automatically send messages with Datadog dashboard widgets from a Slack Workflow Step. |
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. |
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.
추가 유용한 문서, 링크 및 기사: