grafana/docs/sources/panels/inspect-panel.md
Diana Payton 0e53b15375
Docs: Update links for 7.0 (#24751)
* update menu

* updated alert list

* Update alert-list-panel.md

* Update alert-list-panel.md

* Update bar-gauge-panel.md

* Delete bar_gauge.md

* Delete dashlist.md

* Update dashboard-list-panel.md

* deleted old panels

* Update gauge-panel.md

* Update graph-panel.md

* Update heatmap.md

* Update logs-panel.md

* Update news-panel.md

* Updated stat panel

* Update table-panel.md

* Update text-panel.md

* Fixed broken links

* Update _index.md

* Update alerts-overview.md

* Update add-a-panel.md

* Update field-configuration-options.md

* removed beta text

* Update inspect-panel.md

* Update panel-editor.md

* Update thresholds.md

* Update transformations.md

* Update _index.md

* Update _index.md

* Update _index.md

* Update _index.md

* Update _index.md

* Update transformations.md
2020-05-15 13:58:39 -07:00

4.5 KiB

+++ title = "Inspect a panel" type = "docs" [menu.docs] identifier = "inspect-a-panel" parent = "panels" weight = 400 +++

Inspect a panel

Note: This documentation refers to a feature only available in Grafana 7.0+.

The panel inspector 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.

Panel inspector UI

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.

The panel inspector consists of four tabs:

  • 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.
  • Stats tab - Shows how long your query takes and how much it returns.
  • 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.
  • Query tab - Shows you the requests to the server sent when Grafana queries the data source.

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

Panel inspector tasks

Tasks you can perform in the panel inspector are described below.

Open the panel inspector

You can inspect any panel that you can view.

  1. In Grafana, navigate to the dashboard that contains the panel you want to inspect.
  2. Click the title of the panel you want to inspect and then click Inspect. Or Hover your cursor over the panel title and then press i.

The panel inspector pane opens on the right side of the screen.

Inspect raw query results

View raw query results in a table. This is the data returned by the query with transformations applied and before the panel applies field options or field option overrides.

  1. Open the panel inspector and then click the Data tab or in the panel menu click Inspect > Data.
  2. 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.

    View raw query results in a table with field options and options overrides applied:

    1. Open the Data tab in panel inspector.
    2. Click on Data display options above the table.
    3. Click on Apply field configuration toggle button.

Download raw query results as CSV

Grafana generates a CSV file in your default browser download location. You can open it in the viewer of your choice.

  1. Open the panel inspector.
  2. Inspect the raw query results as described above. Adjust settings until you see the raw data that you want to export.
  3. 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. Open the panel inspector.
  2. Navigate to the Stats tab.

Statistics are displayed in read-only format.

View panel JSON model

Explore and export panel, panel data, and data frame JSON models.

  1. Open the panel inspector and then click the JSON tab or in the panel menu click Inspect > Panel JSON.
  2. In Select source, choose one of the following options:
    • Panel JSON - Displays a JSON object representing the panel.
    • Panel data - Displays a JSON object representing the data that was passed to the panel.
    • DataFrame structure - Displays the raw result set with transformations, field configuration, and overrides configuration applied.
  3. You can expand or collapse portions of the JSON to explore it, or you can click Copy to clipboard and paste the JSON in another application.

View raw request and response to data source

  1. Open the panel inspector and then click the Query tab or in the panel menu click Inspect > Query.
  2. Click Refresh.

Grafana sends a query to the server to collect information and then displays the result. You can now drill down on specific portions of the query, expand or collapse all of it, or copy the data to the clipboard to use in other applications.