This product is not supported for your selected
Datadog site. (
).
Join the Preview!
Bits Remediation includes capabilities in Preview. Click Request Access to join the Preview program.
Request AccessBits Remediation helps on-call engineers, SREs, and platform teams act on the root cause that Bits Investigation finds. From an investigation, Bits can generate code fixes, run triage actions, and take action on your infrastructure. Admins govern which actions Bits can take and who must approve them. After you approve and apply the changes, Bits verifies that the issue is resolved.
For example, Bits might trace rising error rates to a faulty Kubernetes deployment. From the investigation, you can use Bits to open an incident, roll back the deployment, and generate a pull request that fixes the underlying error. Afterward, Bits can verify that error rates returned to normal.
This image shows a Bits Investigation remediation plan with suggested next steps:
Automatic code fixes
Bits integrates with Bits Code to generate code fixes as part of the remediation plan for an investigation. Bits Code connects to your source code provider to create, update, and iterate on production-ready pull requests, based on existing issues detected by Datadog. This allows you to resolve issues with code-related root causes directly from an investigation.
Enable automatic code fixes
To enable code fixes:
Set up Bits Code.
(Optional) To have Bits open pull requests for you, enable auto-push. By default, you create the pull request from the suggested fix.
After Bits determines a code-related root cause for an issue, Bits automatically generates a suggested code fix.
Disable automatic code fixes
By default, when Bits Code is configured, Bits automatically generates code fixes for investigations with code-related root causes.
To manually generate code fixes instead:
- Disable automatic code fix generation in Settings.
Review and approve code fixes
To review and approve code fixes from an investigation:
- Go to Bits AI > Investigations and open the target investigation.
- In the investigation, under Next Steps, review the suggested code fix:
- (Optional) Chat with Bits within the code session to update the suggested code fix.
- If auto-push is disabled, create the pull request from the suggested fix.
- Review and merge the pull request when ready.
Triage actions
During an investigation, Bits pulls relevant context from the investigation and your connected integrations to prefill Slack messages, incident descriptions, and ticket metadata. This reduces manual effort, helps ensure consistency, and accelerates response time.
Supported triage actions
Supported triage actions include:
- Sending Slack messages
- Creating incidents in Datadog and PagerDuty
- Paging engineers using Datadog On-Call
- Creating work items in Datadog Work Management
- Opening Jira tickets
Run triage actions
To run triage actions from an investigation:
- Go to Bits AI > Investigations and open the target investigation.
- In the investigation, under Next Steps, review and run the triage action.
Infrastructure actions
During an investigation, Bits can recommend remediation actions to take on your infrastructure, such as rolling back a Kubernetes deployment, rebooting an EC2 instance, or invoking an AWS Lambda function. An infrastructure action can resolve an infrastructure-related root cause, or reduce the impact of an issue while you work on a longer-term fix. For more information about the available actions, see the Action Catalog.
Manual recommendations and one-click actions
Bits supports the following options for infrastructure actions:
Manual recommendations: From the Next Steps section of an investigation, copy the suggested command (for example, a kubectl patch command) and run it in your own CLI.
One-click actions (Preview): From the Next Steps section of an investigation, click Approve to let Bits execute the suggested remediation action directly from the investigation context. You can also configure Slack notifications to approve the remediation action from Slack. One-click actions are available for Kubernetes and AWS infrastructure. Bits can run an infrastructure action only when a guardrail covers the action and the resource it targets. For information about how to enable one-click infrastructure actions, see Infrastructure Actions.
Validate that issues are resolved
Bits can verify whether a remediation action was applied successfully, and whether the original issue was resolved:
To verify that issues are resolved:
- In the target investigation, click Verify Resolution.
If you verify right after an action runs, the status might show Not resolved yet while pre-fix errors are still in that window. Wait for the related monitor to recover, then click Check Again.
Review action history
Action History in Bits Settings is an auditable record of every action Bits has taken, including triage actions and infrastructure actions. Filter the list by action, integration, or investigation, and click an action to see:
- Execution details: The status, start and end time, duration, and connection used.
- Scope and policy: The guardrail that covered the action and who initiated it.
- Original investigation: The root cause and impact that led to the action, with a link to the investigation.