2022-05-26 10:06:25 -05:00
---
aliases:
- /docs/grafana/latest/troubleshooting/troubleshoot-queries/
description: Guide to troubleshooting Grafana queries
keywords:
- grafana
- troubleshooting
- documentation
- guide
- queries
title: Troubleshoot queries
weight: 400
---
2020-08-11 08:56:06 -05:00
# Troubleshoot queries
This page provides information to solve common dashboard problems.
2020-08-19 12:38:41 -05:00
## I get different results when I rearrange my functions
2020-08-11 08:56:06 -05:00
Function order is very important. Just like in math, the order that you place your functions can affect the result.
## Inspect your query request and response
The most common problems are related to the query and response from your data source. Even if it looks
like a bug or visualization issue in Grafana, it is almost always a problem with the data source query or
the data source response. Start by inspecting your panel query and response.
2022-01-18 15:06:27 -06:00
For more information, refer to [Inspect request and response data ]({{< relref "../panels/query-a-data-source/inspect-request-and-response-data.md" >}} ).
2020-08-19 12:38:41 -05:00
## My query is slow
How many data points is your query returning? A query that returns lots of data points will be slow. Try this:
2021-08-06 08:52:36 -05:00
2020-08-19 12:38:41 -05:00
- In **Query options** , limit the **Max data points** returned.
- In **Query options** , increase the **Min interval** time.
- In your query, use a `group by` function.