2022-05-26 23:06:25 +08:00
|
|
|
---
|
|
|
|
aliases:
|
2022-12-10 00:36:04 +08:00
|
|
|
- ../../troubleshooting/troubleshoot-queries/
|
2023-12-14 05:24:26 +08:00
|
|
|
description: Troubleshoot Grafana queries
|
2022-05-26 23:06:25 +08:00
|
|
|
keywords:
|
|
|
|
- grafana
|
|
|
|
- troubleshooting
|
|
|
|
- documentation
|
|
|
|
- guide
|
|
|
|
- queries
|
Explicitly set all front matter labels in the source files (#71548)
* Set every page to have defaults of 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration pages to have of 'Cloud', 'Enterprise', and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/enterprise-licensing pages to have 'Enterprise' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/organization-management pages to have 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/provisioning pages to have 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/recorded-queries pages to have labels cloud,enterprise
* Set administration/roles-and-permissions/access-control pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/stats-and-license pages to have labels cloud,enterprise
* Set alerting pages to have labels cloud,enterprise,oss
* Set breaking-changes pages to have labels cloud,enterprise,oss
* Set dashboards pages to have labels cloud,enterprise,oss
* Set datasources pages to have labels cloud,enterprise,oss
* Set explore pages to have labels cloud,enterprise,oss
* Set fundamentals pages to have labels cloud,enterprise,oss
* Set introduction/grafana-cloud pages to have labels cloud
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Fix introduction pages products
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set panels-visualizations pages to have labels cloud,enterprise,oss
* Set release-notes pages to have labels cloud,enterprise,oss
* Set search pages to have labels cloud,enterprise,oss
* Set setup-grafana/configure-security/audit-grafana pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/configure-authentication pages to have labels cloud,enterprise,oss
* Set setup-grafana/configure-security/configure-authentication/enhanced-ldap pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-authentication/saml pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-database-encryption/encrypt-secrets-using-hashicorp-key-vault pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-request-security pages to have labels cloud,enterprise,oss
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/configure-team-sync pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/export-logs pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set troubleshooting pages to have labels cloud,enterprise,oss
* Set whatsnew pages to have labels cloud,enterprise,oss
* Apply updated labels from review
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
---------
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-07-18 16:10:12 +08:00
|
|
|
labels:
|
|
|
|
products:
|
|
|
|
- cloud
|
|
|
|
- enterprise
|
|
|
|
- oss
|
2022-05-26 23:06:25 +08:00
|
|
|
title: Troubleshoot queries
|
2022-09-27 04:28:10 +08:00
|
|
|
weight: 200
|
2024-05-21 23:16:47 +08:00
|
|
|
refs:
|
|
|
|
inspect:
|
|
|
|
- pattern: /docs/grafana/
|
|
|
|
destination: /docs/grafana/<GRAFANA_VERSION>/panels-visualizations/panel-inspector/#inspect-query-request-and-response-data
|
|
|
|
- pattern: /docs/grafana-cloud/
|
|
|
|
destination: /docs/grafana/<GRAFANA_VERSION>/panels-visualizations/panel-inspector/#inspect-query-request-and-response-data
|
2022-05-26 23:06:25 +08:00
|
|
|
---
|
2020-08-11 21:56:06 +08:00
|
|
|
|
|
|
|
# Troubleshoot queries
|
|
|
|
|
|
|
|
This page provides information to solve common dashboard problems.
|
|
|
|
|
2020-08-20 01:38:41 +08:00
|
|
|
## I get different results when I rearrange my functions
|
2020-08-11 21:56:06 +08: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.
|
|
|
|
|
2024-05-21 23:16:47 +08:00
|
|
|
For more information, refer to [Inspect request and response data](ref:inspect).
|
2020-08-20 01:38:41 +08: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 21:52:36 +08:00
|
|
|
|
2020-08-20 01:38:41 +08: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.
|