Files
grafana/docs/sources/panels-visualizations/panel-inspector/index.md
Christopher Moyer 414d536186 Docs: refactors config panels and visualizations, corrects relrefs (#55940)
* refactors config panels and visualizations, corrects relrefs

* adds an alias

* Remove some old content

* moves visualizations topic to the root

* moves out panels and visualization topics to the root

* adds move and resize panel to add/organize panel; creates a create dashboard topic under build dashboards; adjusts context of add a panel to be from within an existing dashboard

* updates aliases

* creates search at root, moves dashboard preview to search, creates standalone search dashboard topic

* moves Set dashboard time range to use-dashboards, creates modify dashboard settings and adds moves Modify dashboard time settings to that topic

* moves existing query-options topic from working with panels to configure-panel-visualizations, moves panel time overrides and timeshift content to query options

* Moving things to better category, fixing links, improving ordering

* Move panel inspector to main panel topic

* completes partial fix of relrefs

* relref fixes con't

* restructures remaining panels topics

* more relref fixes

* Minor fix

* Minor tweak

* finishes fixing relrefs

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2022-10-11 15:31:20 -05:00

3.7 KiB

aliases, title, weight
aliases title weight
/docs/grafana/latest/panels/working-with-panels/navigate-inspector-panel/
/docs/grafana/latest/panels-visualizations/panel-inspector/
/docs/grafana/latest/panels/query-a-data-source/download-raw-query-results/
/docs/grafana/latest/panels/query-a-data-source/inspect-query-performance/
/docs/grafana/latest/panels/query-a-data-source/inspect-request-and-response-data/
The panel inspect view 1200

The panel inspect view

The panel inspect view, which you can open via the panel menu, helps you understand and troubleshoot your panels. You can inspect the raw data for any Grafana panel, export that data to a comma-separated values (CSV) file, view query requests, and export panel and data JSON.

Note: Not all panel types include all tabs. For example, dashboard list panels do not have raw data to inspect, so they do not display the Stats, Data, or Query tabs.

The panel inspector consists of the following options:

  1. The panel inspector displays Inspect: at the top of the pane. Click the arrow in the upper right corner to expand or reduce the pane.

  2. Data tab - Shows the raw data returned by the query with transformations applied. Field options such as overrides and value mappings are not applied by default.

  3. Stats tab - Shows how long your query takes and how much it returns.

  4. JSON tab - Allows you to view and copy the panel JSON, panel data JSON, and data frame structure JSON. This is useful if you are provisioning or administering Grafana.

  5. Query tab - Shows you the requests to the server sent when Grafana queries the data source.

  6. Error tab - Shows the error. Only visible when query returns error.

Download raw query results

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.

  1. Edit the panel that contains the query data you want to download.

  2. In the query editor, click Query Inspector.

  3. Click Data.

    If your panel contains multiple queries or queries multiple nodes, then you have additional options.

    • Select result: Choose which result set data you want to view.
    • Transform data
    • Join by time: View raw data from all your queries at once, one result set per column. Click a column heading to reorder the data.
  4. To see data before the system applies field overrides, click the Formatted data toggle.

  5. To download a CSV file specifically formatted for Excel, click the Download for Excel toggle .

  6. Click Download CSV.

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.

  1. Edit the panel that contains the query with performance you want to inspect.
  2. In the query editor, click Query Inspector.
  3. Click Stats.

Statistics are displayed in read-only format.

Inspect query request and response data

Inspect query request and response data when you want to troubleshoot a query that returns unexpected results, or fails to return expected results.

  1. Edit the panel that contains the query you want to export.

  2. In the query editor, click Query Inspector.

  3. Click Refresh.

    The panel populates with response data.

  4. Make adjustments, as necessary and re-run the query.

  5. To download the query request and response data, click the Copy to clipboard icon and paste the results into another application.