<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Query a data source on Grafana Labs</title><link>https://grafana.com/docs/grafana/v8.4/panels/query-a-data-source/</link><description>Recent content in Query a data source on Grafana Labs</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="/docs/grafana/v8.4/panels/query-a-data-source/index.xml" rel="self" type="application/rss+xml"/><item><title>About queries</title><link>https://grafana.com/docs/grafana/v8.4/panels/query-a-data-source/about-queries/</link><pubDate>Sat, 04 Apr 2026 12:26:57 +0000</pubDate><guid>https://grafana.com/docs/grafana/v8.4/panels/query-a-data-source/about-queries/</guid><content><![CDATA[&lt;h1 id=&#34;about-queries&#34;&gt;About queries&lt;/h1&gt;
&lt;p&gt;&lt;em&gt;Queries&lt;/em&gt; are how Grafana panels communicate with data sources to get data for the visualization. A query is a question written in the query language used by the data source. How often the query is sent to the data source and how many data points are collected can be adjusted in the panel data source options.&lt;/p&gt;
&lt;p&gt;Use you a query editor to write a query. Each data source has its own query editor that we have customized to include the features and capabilities of the data source. Grafana supports up to 26 queries per panel.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Important! You must be familiar with the query language of the data source. For more information about data sources, refer to &lt;a href=&#34;../../../datasources/&#34;&gt;Data sources&lt;/a&gt;.&lt;/p&gt;&lt;/blockquote&gt;
&lt;h2 id=&#34;query-editors&#34;&gt;Query editors&lt;/h2&gt;
&lt;p&gt;Depending on your data source, the query editor might provide auto-completion, metric names, or variable suggestions.&lt;/p&gt;
&lt;p&gt;Because of the difference between query languages, data sources have query editors that look different. Here are two examples of query editors.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;InfluxDB query editor&lt;/strong&gt;&lt;/p&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p docs-image--no-shadow&#34;
    style=&#34;max-width: 1000px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link&#34;
        href=&#34;/static/img/docs/queries/influxdb-query-editor-7-2.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload &#34;
          data-src=&#34;/static/img/docs/queries/influxdb-query-editor-7-2.png&#34;data-srcset=&#34;/static/img/docs/queries/influxdb-query-editor-7-2.png?w=320 320w, /static/img/docs/queries/influxdb-query-editor-7-2.png?w=550 550w, /static/img/docs/queries/influxdb-query-editor-7-2.png?w=750 750w, /static/img/docs/queries/influxdb-query-editor-7-2.png?w=900 900w, /static/img/docs/queries/influxdb-query-editor-7-2.png?w=1040 1040w, /static/img/docs/queries/influxdb-query-editor-7-2.png?w=1240 1240w, /static/img/docs/queries/influxdb-query-editor-7-2.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;&#34;width=&#34;1016&#34;height=&#34;419&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/queries/influxdb-query-editor-7-2.png&#34;
            alt=&#34;&#34;width=&#34;1016&#34;height=&#34;419&#34;class=&#34;docs-image--no-shadow&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;/a&gt;&lt;/figure&gt;
&lt;p&gt;&lt;strong&gt;Prometheus (PromQL) query editor&lt;/strong&gt;&lt;/p&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p docs-image--no-shadow&#34;
    style=&#34;max-width: 1000px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link&#34;
        href=&#34;/static/img/docs/queries/prometheus-query-editor-7-4.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload &#34;
          data-src=&#34;/static/img/docs/queries/prometheus-query-editor-7-4.png&#34;data-srcset=&#34;/static/img/docs/queries/prometheus-query-editor-7-4.png?w=320 320w, /static/img/docs/queries/prometheus-query-editor-7-4.png?w=550 550w, /static/img/docs/queries/prometheus-query-editor-7-4.png?w=750 750w, /static/img/docs/queries/prometheus-query-editor-7-4.png?w=900 900w, /static/img/docs/queries/prometheus-query-editor-7-4.png?w=1040 1040w, /static/img/docs/queries/prometheus-query-editor-7-4.png?w=1240 1240w, /static/img/docs/queries/prometheus-query-editor-7-4.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;&#34;width=&#34;959&#34;height=&#34;211&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/queries/prometheus-query-editor-7-4.png&#34;
            alt=&#34;&#34;width=&#34;959&#34;height=&#34;211&#34;class=&#34;docs-image--no-shadow&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;/a&gt;&lt;/figure&gt;
&lt;h2 id=&#34;query-syntax&#34;&gt;Query syntax&lt;/h2&gt;
&lt;p&gt;Data sources use different query languages to return data. Here are two query examples:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;PostgreSQL&lt;/strong&gt;&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;SELECT hostname FROM host  WHERE region IN($region)&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;PromQL&lt;/strong&gt;&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;query_result(max_over_time(&amp;lt;metric&amp;gt;[${__range_s}s]) != &amp;lt;state&amp;gt;)&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h2 id=&#34;data-sources-used-in-queries&#34;&gt;Data sources used in queries&lt;/h2&gt;
&lt;p&gt;In addition to the data sources that you have configured in Grafana, there are three special data sources available:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Grafana -&lt;/strong&gt; A built-in data source that generates random walk data, which can be useful for testing visualizations and running experiments.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Mixed -&lt;/strong&gt; Select this option to query multiple data sources in the same panel. When you select this data source, Grafana enables you to select a data source for every new query that you add.
&lt;ul&gt;
&lt;li&gt;The first query uses the data source that was selected before you selected &lt;strong&gt;Mixed&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;You cannot change an existing query to use the Mixed Data Source.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Dashboard -&lt;/strong&gt; Select this option to use a result set from another panel in the same dashboard.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can combine data from multiple data sources onto a single dashboard, but each panel is tied to a specific data source that belongs to a particular Organization.&lt;/p&gt;
]]></content><description>&lt;h1 id="about-queries">About queries&lt;/h1>
&lt;p>&lt;em>Queries&lt;/em> are how Grafana panels communicate with data sources to get data for the visualization. A query is a question written in the query language used by the data source. How often the query is sent to the data source and how many data points are collected can be adjusted in the panel data source options.&lt;/p></description></item><item><title>Navigate the query tab</title><link>https://grafana.com/docs/grafana/v8.4/panels/query-a-data-source/navigate-query-tab/</link><pubDate>Sat, 04 Apr 2026 12:26:57 +0000</pubDate><guid>https://grafana.com/docs/grafana/v8.4/panels/query-a-data-source/navigate-query-tab/</guid><content><![CDATA[&lt;h1 id=&#34;navigate-the-query-tab&#34;&gt;Navigate the query tab&lt;/h1&gt;
&lt;p&gt;The Query tab consists of the following elements:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Data source selector: Use the data source selector to select the source of the data you want to query. For more information about data sources, refer to &lt;a href=&#34;../../../datasources/&#34;&gt;Data sources&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Query options: Enables you to set maximum data retrieved parameters and query execution time intervals.&lt;/li&gt;
&lt;li&gt;Query inspector button: Open the query inspector panel where you can view and optimize your query.&lt;/li&gt;
&lt;li&gt;Query editor list: Lists the queries you have written.&lt;/li&gt;
&lt;li&gt;Expressions: Use the expression builder to create alert expressions. For more information about expressions, refer to &lt;a href=&#34;../use-expressions-to-manipulate-data/&#34;&gt;Use expressions to manipulate data&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p docs-image--no-shadow&#34;
    style=&#34;max-width: 1000px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link&#34;
        href=&#34;/static/img/docs/queries/query-editor-7-2.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload &#34;
          data-src=&#34;/static/img/docs/queries/query-editor-7-2.png&#34;data-srcset=&#34;/static/img/docs/queries/query-editor-7-2.png?w=320 320w, /static/img/docs/queries/query-editor-7-2.png?w=550 550w, /static/img/docs/queries/query-editor-7-2.png?w=750 750w, /static/img/docs/queries/query-editor-7-2.png?w=900 900w, /static/img/docs/queries/query-editor-7-2.png?w=1040 1040w, /static/img/docs/queries/query-editor-7-2.png?w=1240 1240w, /static/img/docs/queries/query-editor-7-2.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;&#34;width=&#34;1161&#34;height=&#34;315&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/queries/query-editor-7-2.png&#34;
            alt=&#34;&#34;width=&#34;1161&#34;height=&#34;315&#34;class=&#34;docs-image--no-shadow&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;/a&gt;&lt;/figure&gt;
]]></content><description>&lt;h1 id="navigate-the-query-tab">Navigate the query tab&lt;/h1>
&lt;p>The Query tab consists of the following elements:&lt;/p>
&lt;ul>
&lt;li>Data source selector: Use the data source selector to select the source of the data you want to query. For more information about data sources, refer to &lt;a href="../../../datasources/">Data sources&lt;/a>.&lt;/li>
&lt;li>Query options: Enables you to set maximum data retrieved parameters and query execution time intervals.&lt;/li>
&lt;li>Query inspector button: Open the query inspector panel where you can view and optimize your query.&lt;/li>
&lt;li>Query editor list: Lists the queries you have written.&lt;/li>
&lt;li>Expressions: Use the expression builder to create alert expressions. For more information about expressions, refer to &lt;a href="../use-expressions-to-manipulate-data/">Use expressions to manipulate data&lt;/a>.&lt;/li>
&lt;/ul>
&lt;figure
class="figure-wrapper figure-wrapper__lightbox w-100p docs-image--no-shadow"
style="max-width: 1000px;"
itemprop="associatedMedia"
itemscope=""
itemtype="http://schema.org/ImageObject"
>&lt;a
class="lightbox-link"
href="/static/img/docs/queries/query-editor-7-2.png"
itemprop="contentUrl"
>&lt;div class="img-wrapper w-100p h-auto">&lt;img
class="lazyload "
data-src="/static/img/docs/queries/query-editor-7-2.png"data-srcset="/static/img/docs/queries/query-editor-7-2.png?w=320 320w, /static/img/docs/queries/query-editor-7-2.png?w=550 550w, /static/img/docs/queries/query-editor-7-2.png?w=750 750w, /static/img/docs/queries/query-editor-7-2.png?w=900 900w, /static/img/docs/queries/query-editor-7-2.png?w=1040 1040w, /static/img/docs/queries/query-editor-7-2.png?w=1240 1240w, /static/img/docs/queries/query-editor-7-2.png?w=1920 1920w"data-sizes="auto"alt=""width="1161"height="315"/>
&lt;noscript>
&lt;img
src="/static/img/docs/queries/query-editor-7-2.png"
alt=""width="1161"height="315"class="docs-image--no-shadow"/>
&lt;/noscript>&lt;/div>&lt;/a>&lt;/figure></description></item><item><title>Add a query</title><link>https://grafana.com/docs/grafana/v8.4/panels/query-a-data-source/add-a-query/</link><pubDate>Sat, 04 Apr 2026 12:26:57 +0000</pubDate><guid>https://grafana.com/docs/grafana/v8.4/panels/query-a-data-source/add-a-query/</guid><content><![CDATA[&lt;h1 id=&#34;add-a-query&#34;&gt;Add a query&lt;/h1&gt;
&lt;p&gt;A query returns data that Grafana visualizes in dashboards. When you create a panel, Grafana automatically selects the default data source.&lt;/p&gt;
&lt;h2 id=&#34;before-you-begin&#34;&gt;Before you begin&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../../datasources/add-a-data-source&#34;&gt;Add a data source&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Ensure that you know the query language of the data source.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../working-with-panels/add-panel/&#34;&gt;Add a panel&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;To add a query&lt;/strong&gt;:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Edit the panel to which you are adding a query.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click the &lt;strong&gt;Query&lt;/strong&gt; tab.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click the &lt;strong&gt;Data source&lt;/strong&gt; drop-down menu and select a data source.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click &lt;strong&gt;Query options&lt;/strong&gt; to configure the maximum number of data points returned by the query and how frequently you want the query to request data from the data source.&lt;/p&gt;
&lt;p&gt;For more information about query options, refer to &lt;a href=&#34;../../reference-query-options/&#34;&gt;Reference: Query options&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Write the query.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click &lt;strong&gt;Apply&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The system queries the data source and presents the data in the visualization.&lt;/p&gt;
]]></content><description>&lt;h1 id="add-a-query">Add a query&lt;/h1>
&lt;p>A query returns data that Grafana visualizes in dashboards. When you create a panel, Grafana automatically selects the default data source.&lt;/p>
&lt;h2 id="before-you-begin">Before you begin&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="../../../datasources/add-a-data-source">Add a data source&lt;/a>.&lt;/li>
&lt;li>Ensure that you know the query language of the data source.&lt;/li>
&lt;li>&lt;a href="../../working-with-panels/add-panel/">Add a panel&lt;/a>.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>To add a query&lt;/strong>:&lt;/p></description></item><item><title>Use expressions to manipulate data</title><link>https://grafana.com/docs/grafana/v8.4/panels/query-a-data-source/use-expressions-to-manipulate-data/</link><pubDate>Sat, 04 Apr 2026 12:26:57 +0000</pubDate><guid>https://grafana.com/docs/grafana/v8.4/panels/query-a-data-source/use-expressions-to-manipulate-data/</guid><content><![CDATA[&lt;h1 id=&#34;use-expressions-to-manipulate-data&#34;&gt;Use expressions to manipulate data&lt;/h1&gt;
&lt;p&gt;Server-side expressions enable you to manipulate data returned from queries with math and other operations. Expressions create new data and do not manipulate the data returned by data sources.&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v8.4/panels/query-a-data-source/use-expressions-to-manipulate-data/about-expressions/&#34;&gt;About expressions&lt;/a&gt;&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v8.4/panels/query-a-data-source/use-expressions-to-manipulate-data/write-an-expression/&#34;&gt;Write an expression&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
]]></content><description>&lt;h1 id="use-expressions-to-manipulate-data">Use expressions to manipulate data&lt;/h1>
&lt;p>Server-side expressions enable you to manipulate data returned from queries with math and other operations. Expressions create new data and do not manipulate the data returned by data sources.&lt;/p></description></item><item><title>Manage queries</title><link>https://grafana.com/docs/grafana/v8.4/panels/query-a-data-source/manage-queries/</link><pubDate>Sat, 04 Apr 2026 12:26:57 +0000</pubDate><guid>https://grafana.com/docs/grafana/v8.4/panels/query-a-data-source/manage-queries/</guid><content><![CDATA[&lt;h1 id=&#34;manage-queries&#34;&gt;Manage queries&lt;/h1&gt;
&lt;p&gt;Queries are organized in collapsible query rows. Each query row contains a query editor and is identified with a letter (A, B, C, and so on).&lt;/p&gt;
&lt;p&gt;You can:&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th style=&#34;text-align: center&#34;&gt;Icon&lt;/th&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;Description&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: center&#34;&gt;&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p docs-image--no-shadow&#34;
    style=&#34;max-width: 30px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link&#34;
        href=&#34;/static/img/docs/queries/query-editor-help-7-4.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload &#34;
          data-src=&#34;/static/img/docs/queries/query-editor-help-7-4.png&#34;data-srcset=&#34;/static/img/docs/queries/query-editor-help-7-4.png?w=320 320w, /static/img/docs/queries/query-editor-help-7-4.png?w=550 550w, /static/img/docs/queries/query-editor-help-7-4.png?w=750 750w, /static/img/docs/queries/query-editor-help-7-4.png?w=900 900w, /static/img/docs/queries/query-editor-help-7-4.png?w=1040 1040w, /static/img/docs/queries/query-editor-help-7-4.png?w=1240 1240w, /static/img/docs/queries/query-editor-help-7-4.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;&#34;width=&#34;56&#34;height=&#34;58&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/queries/query-editor-help-7-4.png&#34;
            alt=&#34;&#34;width=&#34;56&#34;height=&#34;58&#34;class=&#34;docs-image--no-shadow&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;/a&gt;&lt;/figure&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Toggle query editor help. If supported by the data source, click this icon to display information on how to use the query editor or provide quick access to common queries.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: center&#34;&gt;&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p docs-image--no-shadow&#34;
    style=&#34;max-width: 30px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link&#34;
        href=&#34;/static/img/docs/queries/duplicate-query-icon-7-0.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload &#34;
          data-src=&#34;/static/img/docs/queries/duplicate-query-icon-7-0.png&#34;data-srcset=&#34;/static/img/docs/queries/duplicate-query-icon-7-0.png?w=320 320w, /static/img/docs/queries/duplicate-query-icon-7-0.png?w=550 550w, /static/img/docs/queries/duplicate-query-icon-7-0.png?w=750 750w, /static/img/docs/queries/duplicate-query-icon-7-0.png?w=900 900w, /static/img/docs/queries/duplicate-query-icon-7-0.png?w=1040 1040w, /static/img/docs/queries/duplicate-query-icon-7-0.png?w=1240 1240w, /static/img/docs/queries/duplicate-query-icon-7-0.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;&#34;width=&#34;56&#34;height=&#34;58&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/queries/duplicate-query-icon-7-0.png&#34;
            alt=&#34;&#34;width=&#34;56&#34;height=&#34;58&#34;class=&#34;docs-image--no-shadow&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;/a&gt;&lt;/figure&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Copy a query. Duplicating queries is useful when working with multiple complex queries that are similar and you want to either experiment with different variants or do minor alterations.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: center&#34;&gt;&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p docs-image--no-shadow&#34;
    style=&#34;max-width: 30px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link&#34;
        href=&#34;/static/img/docs/queries/hide-query-icon-7-0.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload &#34;
          data-src=&#34;/static/img/docs/queries/hide-query-icon-7-0.png&#34;data-srcset=&#34;/static/img/docs/queries/hide-query-icon-7-0.png?w=320 320w, /static/img/docs/queries/hide-query-icon-7-0.png?w=550 550w, /static/img/docs/queries/hide-query-icon-7-0.png?w=750 750w, /static/img/docs/queries/hide-query-icon-7-0.png?w=900 900w, /static/img/docs/queries/hide-query-icon-7-0.png?w=1040 1040w, /static/img/docs/queries/hide-query-icon-7-0.png?w=1240 1240w, /static/img/docs/queries/hide-query-icon-7-0.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;&#34;width=&#34;56&#34;height=&#34;58&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/queries/hide-query-icon-7-0.png&#34;
            alt=&#34;&#34;width=&#34;56&#34;height=&#34;58&#34;class=&#34;docs-image--no-shadow&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;/a&gt;&lt;/figure&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Hide a query. Grafana does not send hidden queries to the data source.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: center&#34;&gt;&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p docs-image--no-shadow&#34;
    style=&#34;max-width: 30px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link&#34;
        href=&#34;/static/img/docs/queries/remove-query-icon-7-0.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload &#34;
          data-src=&#34;/static/img/docs/queries/remove-query-icon-7-0.png&#34;data-srcset=&#34;/static/img/docs/queries/remove-query-icon-7-0.png?w=320 320w, /static/img/docs/queries/remove-query-icon-7-0.png?w=550 550w, /static/img/docs/queries/remove-query-icon-7-0.png?w=750 750w, /static/img/docs/queries/remove-query-icon-7-0.png?w=900 900w, /static/img/docs/queries/remove-query-icon-7-0.png?w=1040 1040w, /static/img/docs/queries/remove-query-icon-7-0.png?w=1240 1240w, /static/img/docs/queries/remove-query-icon-7-0.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;&#34;width=&#34;56&#34;height=&#34;58&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/queries/remove-query-icon-7-0.png&#34;
            alt=&#34;&#34;width=&#34;56&#34;height=&#34;58&#34;class=&#34;docs-image--no-shadow&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;/a&gt;&lt;/figure&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Remove a query. Removing a query permanently deletes it, but sometimes you can recover deleted queries by reverting to previously saved versions of the panel.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: center&#34;&gt;&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p docs-image--no-shadow&#34;
    style=&#34;max-width: 30px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link&#34;
        href=&#34;/static/img/docs/queries/query-drag-icon-7-2.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload &#34;
          data-src=&#34;/static/img/docs/queries/query-drag-icon-7-2.png&#34;data-srcset=&#34;/static/img/docs/queries/query-drag-icon-7-2.png?w=320 320w, /static/img/docs/queries/query-drag-icon-7-2.png?w=550 550w, /static/img/docs/queries/query-drag-icon-7-2.png?w=750 750w, /static/img/docs/queries/query-drag-icon-7-2.png?w=900 900w, /static/img/docs/queries/query-drag-icon-7-2.png?w=1040 1040w, /static/img/docs/queries/query-drag-icon-7-2.png?w=1240 1240w, /static/img/docs/queries/query-drag-icon-7-2.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;&#34;width=&#34;26&#34;height=&#34;29&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/queries/query-drag-icon-7-2.png&#34;
            alt=&#34;&#34;width=&#34;26&#34;height=&#34;29&#34;class=&#34;docs-image--no-shadow&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;/a&gt;&lt;/figure&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Reorder queries. Change the order of queries by clicking and holding the drag icon, then drag queries where desired. The order of results reflects the order of the queries, so you can often adjust your visual results based on query order.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;]]></content><description>&lt;h1 id="manage-queries">Manage queries&lt;/h1>
&lt;p>Queries are organized in collapsible query rows. Each query row contains a query editor and is identified with a letter (A, B, C, and so on).&lt;/p></description></item><item><title>Share query results with another panel</title><link>https://grafana.com/docs/grafana/v8.4/panels/query-a-data-source/share-query/</link><pubDate>Sat, 04 Apr 2026 12:26:57 +0000</pubDate><guid>https://grafana.com/docs/grafana/v8.4/panels/query-a-data-source/share-query/</guid><content><![CDATA[&lt;h1 id=&#34;share-query-results-with-another-panel&#34;&gt;Share query results with another panel&lt;/h1&gt;
&lt;p&gt;Grafana let you use the query result from one panel for any other panel in the dashboard. Sharing query results across panels reduces the number of queries made to your data source, which can improve the performance of your dashboard.&lt;/p&gt;
&lt;p&gt;The Dashboard data source lets you select a panel in your dashboard that contains the queries ‌you want to share the results for. Instead of sending a separate query for each panel, Grafana sends one query and other panels use the query results to construct visualizations.&lt;/p&gt;
&lt;p&gt;This strategy can drastically reduce the number of queries being made when you for example have several panels visualizing the same data.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;To share data source queries with another panel&lt;/strong&gt;:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;
    &lt;a href=&#34;/docs/grafana/v8.4/getting-started/getting-started/#step-3-create-a-dashboard&#34;&gt;Create a dashboard&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../working-with-panels/add-panel/&#34;&gt;Add a panel to a dashboard&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Change the title to &amp;ldquo;Source panel&amp;rdquo;. You&amp;rsquo;ll use this panel as a source for the other panels.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Define the &lt;a href=&#34;../add-a-query/&#34;&gt;query&lt;/a&gt; or queries that you want share.&lt;/p&gt;
&lt;p&gt;If you don&amp;rsquo;t have a data source available, use the &lt;strong&gt;Grafana&lt;/strong&gt; data source, which returns a random time series that you can use for testing.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add a second panel and select the &lt;strong&gt;Dashboard&lt;/strong&gt; data source in the query editor.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the &lt;strong&gt;Use results from panel list&lt;/strong&gt;, select the first panel you created.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;All queries defined in the source panel are now available to the new panel. Queries made in the source panel can be shared with multiple panels.&lt;/p&gt;
&lt;p&gt;You can click on any of the queries to go to the panel where they are defined.&lt;/p&gt;
]]></content><description>&lt;h1 id="share-query-results-with-another-panel">Share query results with another panel&lt;/h1>
&lt;p>Grafana let you use the query result from one panel for any other panel in the dashboard. Sharing query results across panels reduces the number of queries made to your data source, which can improve the performance of your dashboard.&lt;/p></description></item><item><title>Download raw query results</title><link>https://grafana.com/docs/grafana/v8.4/panels/query-a-data-source/download-raw-query-results/</link><pubDate>Sat, 04 Apr 2026 12:26:57 +0000</pubDate><guid>https://grafana.com/docs/grafana/v8.4/panels/query-a-data-source/download-raw-query-results/</guid><content><![CDATA[&lt;h1 id=&#34;download-raw-query-results&#34;&gt;Download raw query results&lt;/h1&gt;
&lt;p&gt;Grafana generates a CSV file that contains your data, including any transformations to that data. You can choose to view the data before or after the panel applies field options or field option overrides.&lt;/p&gt;
&lt;h2 id=&#34;before-you-begin&#34;&gt;Before you begin&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../working-with-panels/add-panel/&#34;&gt;Add a panel to a dashboard&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../add-a-query/&#34;&gt;Add a query&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;To download raw query results&lt;/strong&gt;:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Edit the panel that contains the query data you want to download.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the query editor, click &lt;strong&gt;Query Inspector&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click &lt;strong&gt;Data&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;If your panel contains multiple queries or queries multiple nodes, then you have additional options.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Select result&lt;/strong&gt;: Choose which result set data you want to view.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Transform data&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Join by time&lt;/strong&gt;: View raw data from all your queries at once, one result set per column. Click a column heading to reorder the data.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;To see data before the system applies field overrides, click the &lt;strong&gt;Formatted data&lt;/strong&gt; toggle.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;To download a CSV file specifically formatted for Excel, click the &lt;strong&gt;Download for Excel&lt;/strong&gt; toggle .&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click &lt;strong&gt;Download CSV&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
]]></content><description>&lt;h1 id="download-raw-query-results">Download raw query results&lt;/h1>
&lt;p>Grafana generates a CSV file that contains your data, including any transformations to that data. You can choose to view the data before or after the panel applies field options or field option overrides.&lt;/p></description></item><item><title>Inspect query performance</title><link>https://grafana.com/docs/grafana/v8.4/panels/query-a-data-source/inspect-query-performance/</link><pubDate>Sat, 04 Apr 2026 12:26:57 +0000</pubDate><guid>https://grafana.com/docs/grafana/v8.4/panels/query-a-data-source/inspect-query-performance/</guid><content><![CDATA[&lt;h1 id=&#34;inspect-query-performance&#34;&gt;Inspect query performance&lt;/h1&gt;
&lt;p&gt;The &lt;strong&gt;Stats&lt;/strong&gt; 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.&lt;/p&gt;
&lt;h2 id=&#34;before-you-begin&#34;&gt;Before you begin&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../working-with-panels/add-panel/&#34;&gt;Add a panel to a dashboard&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../add-a-query/&#34;&gt;Add a query&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;To inspect query performance&lt;/strong&gt;:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Edit the panel that contains the query with performance you want to inspect.&lt;/li&gt;
&lt;li&gt;In the query editor, click &lt;strong&gt;Query Inspector&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Stats&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Statistics are displayed in read-only format.&lt;/p&gt;
]]></content><description>&lt;h1 id="inspect-query-performance">Inspect query performance&lt;/h1>
&lt;p>The &lt;strong>Stats&lt;/strong> 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.&lt;/p></description></item><item><title>Inspect query request and response data</title><link>https://grafana.com/docs/grafana/v8.4/panels/query-a-data-source/inspect-request-and-response-data/</link><pubDate>Sat, 04 Apr 2026 12:26:57 +0000</pubDate><guid>https://grafana.com/docs/grafana/v8.4/panels/query-a-data-source/inspect-request-and-response-data/</guid><content><![CDATA[&lt;h1 id=&#34;inspect-query-request-and-response-data&#34;&gt;Inspect query request and response data&lt;/h1&gt;
&lt;p&gt;Inspect query request and response data when you want to troubleshoot a query that returns unexpected results, or fails to return expected results.&lt;/p&gt;
&lt;h2 id=&#34;before-you-begin&#34;&gt;Before you begin&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../working-with-panels/add-panel/&#34;&gt;Add a panel to a dashboard&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../add-a-query/&#34;&gt;Add a query&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;To inspect query request and response data&lt;/strong&gt;:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Edit the panel that contains the query you want to export.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the query editor, click &lt;strong&gt;Query Inspector&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click &lt;strong&gt;Refresh&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The panel populates with response data.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Make adjustments, as necessary and re-run the query.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;To download the query request and response data, click the &lt;strong&gt;Copy to clipboard&lt;/strong&gt; icon and paste the results into another application.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
]]></content><description>&lt;h1 id="inspect-query-request-and-response-data">Inspect query request and response data&lt;/h1>
&lt;p>Inspect query request and response data when you want to troubleshoot a query that returns unexpected results, or fails to return expected results.&lt;/p></description></item></channel></rss>