---
title: Database Investigations in Bits Chat
description: >-
  Run database investigations in Bits Chat, with AI-powered root cause analysis
  grounded in your Database Monitoring data.
breadcrumbs: Docs > Database Monitoring > Database Investigations in Bits Chat
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Database Investigations in Bits Chat

Database Monitoring contributes a set of tools and skills to [Bits Chat](https://docs.datadoghq.com/bits_ai/bits_chat.md), so you can investigate the databases you monitor directly in chat. Bits Chat analyzes the telemetry Database Monitoring already collects. This includes health signals, query metrics, explain plans, instance and infrastructure metrics, calling APM services, related incidents, and recent events. For a database investigation, Bits Chat returns a structured root cause analysis with concrete remediation steps.

Bits Chat supports investigating all databases monitored by Database Monitoring.

Both database administrators and the platform or application teams that own database-backed services can investigate this way. Describe an issue in plain language and Bits Chat runs the investigation. Deep database expertise is not required.

Use Bits Chat to answer questions like:

- `Why is this database slow?`
- `What caused the latency spike on this query in the last hour?`
- `Is this regression isolated to one instance or fleet-wide?`
- `Which upstream service is driving the workload change?`
- `How can I reduce lock contention on this table?`

Database investigations are billed in [AI Credits](https://docs.datadoghq.com/account_management/billing/ai_credits.md).

{% image
   source="https://docs.dd-static.net/images/database_monitoring/database_investigator/summary.eb2ffa54f05b321d65a40d49fde88350.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/database_monitoring/database_investigator/summary.eb2ffa54f05b321d65a40d49fde88350.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="Bits Chat open alongside a database Summary page, starting an investigation scoped to that database instance" /%}

## Start an investigation{% #start-an-investigation %}

Start a database investigation from any of the following surfaces in Database Monitoring:

- The **Investigate** button on a database **Overview** page
- A metric in the **Metrics** tab of a database host
- A **Blocking Queries** or **Deadlocks** panel
- A normalized query in **Query Metrics**
- A query sample in **Query Samples**

{% image
   source="https://docs.dd-static.net/images/database_monitoring/database_investigator/investigate_instance.604867e6df0e8a2cb38f6ad369c28641.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/database_monitoring/database_investigator/investigate_instance.604867e6df0e8a2cb38f6ad369c28641.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="The Investigate button highlighted on the Overview panel of a database Summary page" /%}

{% image
   source="https://docs.dd-static.net/images/database_monitoring/database_investigator/investigate_metrics.fc560f7b36b4ef985caf98c16ae7f82d.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/database_monitoring/database_investigator/investigate_metrics.fc560f7b36b4ef985caf98c16ae7f82d.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="The Investigate button highlighted on a graph in the Metrics tab of a database host" /%}

Each of these automatically launches a Bits Chat session and starts an investigation scoped to what you clicked from. You do not need to write a prompt.

You can also ask a database question from anywhere in Datadog. Click Ask Bits in the top-right of the navigation bar, or press `Cmd`/`Ctrl` + `I`.

Bits Chat streams the response as it works through the investigation. It states a plan, calls Datadog services to gather evidence, and shares interim findings. The investigation ends with a structured report covering what happened, why, the supporting evidence, the root cause, and recommended fixes.

You can ask follow-up questions at any point to refine the analysis. You can also paste in external context, such as an execution plan captured outside of Datadog, and Bits Chat factors it into its next steps.

{% image
   source="https://docs.dd-static.net/images/database_monitoring/database_investigator/investigator_action.bd1e6e8f3e10db4e44f568fb47a4c732.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/database_monitoring/database_investigator/investigator_action.bd1e6e8f3e10db4e44f568fb47a4c732.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="Bits Chat reporting the root cause of a database issue, with immediate mitigation and durable remediation steps" /%}

If a recommended fix involves a SQL change (a new index, a query rewrite), Bits Chat includes the SQL in its response. Bits Chat never connects to your database or runs SQL against it, as recommended changes are for you to review and apply.

## Share, save, or escalate findings{% #share-save-or-escalate-findings %}

After an investigation completes, you can:

- **Share the conversation**: copy the URL to deep-link a teammate into the same conversation.
- **Export to a notebook**: capture the investigation in a [Datadog notebook](https://docs.datadoghq.com/notebooks.md) for write-up, follow-up, or sharing in a postmortem.
- **Create an incident**: escalate the findings into a new [Datadog incident](https://docs.datadoghq.com/service_management/incident_management.md).

## Permissions{% #permissions %}

To run database investigations, your role must have the **Bits Chat Access** and **Database Monitoring Read** permissions. Bits Chat uses your Datadog role to fetch data, so it can only access the resources you have permission to view.

## Programmatic access{% #programmatic-access %}

The data sources that Bits Chat uses for database investigations are also exposed through the [Datadog MCP server](https://docs.datadoghq.com/mcp_server.md). You can call them from your own AI tooling.

## Preview investigations{% #preview-investigations %}

Investigations you ran in Database Investigator during Preview, before database investigations moved into Bits Chat, are kept separately from your Bits Chat conversation history. They remain available until September 30, 2026.

To reach them, click the dropdown arrow next to the **Investigate** button in Database Monitoring, then select **View Preview Investigations**.

{% image
   source="https://docs.dd-static.net/images/database_monitoring/database_investigator/view_preview_investigations.ed5271b4165dcd9a360ec958cc562e79.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/database_monitoring/database_investigator/view_preview_investigations.ed5271b4165dcd9a360ec958cc562e79.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="The dropdown next to the Investigate button, with the View Preview Investigations option" /%}

The Preview Investigations panel lists your past investigations. Open one to view it, share it, or export it to a [Datadog notebook](https://docs.datadoghq.com/notebooks.md).

{% image
   source="https://docs.dd-static.net/images/database_monitoring/database_investigator/preview_history.47eddf7cc782d0dd279fc0994fe91380.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/database_monitoring/database_investigator/preview_history.47eddf7cc782d0dd279fc0994fe91380.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="The Preview Investigations panel listing past investigations, with a banner noting the September 30 cutoff" /%}

## Further reading{% #further-reading %}

Additional helpful documentation, links, and articles:

- [Bits Chat](https://docs.datadoghq.com/bits_ai/bits_chat.md)
- [AI Credits](https://docs.datadoghq.com/account_management/billing/ai_credits.md)
- [Database Monitoring](https://docs.datadoghq.com/database_monitoring.md)
- [Database Monitoring Recommendations](https://docs.datadoghq.com/database_monitoring/recommendations.md)
- [Exploring Query Metrics](https://docs.datadoghq.com/database_monitoring/query_metrics.md)
- [Exploring Query Samples](https://docs.datadoghq.com/database_monitoring/query_samples.md)
- [Diagnose and resolve database performance issues faster with Database Investigator](https://www.datadoghq.com/blog/database-investigator/)
