Documentation Index
Fetch the curated documentation index at: https://grafana_com_website/llms.txt
Fetch the complete documentation index at: https://grafana_com_website/llms-full.txt
Use this file to discover all available pages before exploring further.
STOP! If you are an AI agent or LLM, read this before continuing. This is the HTML version of a Grafana documentation page. Always request the Markdown version instead - HTML wastes context. Get this page as Markdown: /docs/grafana-cloud/monitor-applications/database-observability/investigate.md (append .md) or send Accept: text/markdown to /docs/grafana-cloud/monitor-applications/database-observability/investigate/. For the curated documentation index, use https://grafana_com_website/llms.txt. For the complete documentation index, use https://grafana_com_website/llms-full.txt.
Investigate performance issues
When you identify a slow or problematic query, use the investigation tools in Database Observability to understand the root cause. These tools help you analyze query execution, examine real query samples, understand where queries spend time waiting, and explore table structures.
What you can do
- Analyze explain plans: Understand how the database executes your queries and identify optimization opportunities.
- Examine query samples: Review actual query executions with their parameters and timing.
- Understand wait events: See where queries spend time waiting for resources.
- Explore table schemas: View table structures, indexes, and constraints to identify optimization opportunities.
Investigation workflow
- Start with metrics: Identify slow queries in the Queries Overview.
- Check the explain plan: Understand how the query executes.
- Review samples: See actual execution times and patterns.
- Analyze wait events: Identify resource bottlenecks.
- Explore schemas: Check for missing indexes.
- Optimize: Apply fixes based on your findings using the slow queries guide.
Explore next steps
- Analyze explain plans
Use explain plans to understand query execution and identify optimization opportunities. - Examine query samples
Review actual query executions with their parameters, timing, and context. - Understand wait events
Learn where queries spend time waiting for resources like locks, I/O, and CPU. - Explore table schemas
Use schema details to understand table structures, indexes, and identify optimization opportunities.
Was this page helpful?
Related resources from Grafana Labs


