Menu
Choose a product
Scroll for more
Grafana Cloud
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
Additional helpful documentation, links, and articles:
Video

Getting started with managing your metrics, logs, and traces using Grafana
In this webinar, we’ll demo how to get started using the LGTM Stack: Loki for logs, Grafana for visualization, Tempo for traces, and Mimir for metrics.
Video

Intro to Kubernetes monitoring in Grafana Cloud
In this webinar you’ll learn how Grafana offers developers and SREs a simple and quick-to-value solution for monitoring their Kubernetes infrastructure.
Video

Building advanced Grafana dashboards
In this webinar, we’ll demo how to build and format Grafana dashboards.