The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
grafana/docs/sources/panels/query-a-data-source/inspect-query-performance.md

23 lines
920 B

+++
aliases = ["/docs/grafana/latest/panels/query-a-data-source/inspect-query-performance/", "/docs/sources/panels/query-a-data-source/inspect-query-performance/"]
title = "Inspect query performance"
weight = 80
+++
# Inspect query performance
The **Stats** tab displays statistics that tell you how long your query takes, how many queries you send, and the number of rows returned. This information can help you troubleshoot your queries, especially if any of the numbers are unexpectedly high or low.
## Before you begin
- [Add a panel to a dashboard]({{< relref "../working-with-panels/add-panel.md" >}}).
- [Add a query]({{< relref "../query-a-data-source/add-a-query.md" >}}).
**To inspect query performance**:
1. Edit the panel that contains the query with performance you want to inspect.
1. In the query editor, click **Query Inspector**.
1. Click **Stats**.
Statistics are displayed in read-only format.