The panel inspect view
This documentation topic is designed for Grafana workspaces that support Grafana version 10.x.
For Grafana workspaces that support Grafana version 9.x, see Working in Grafana version 9.
For Grafana workspaces that support Grafana version 8.x, see Working in Grafana version 8.
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 Amazon Managed 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:
-
The panel inspector displays Inspect: at the top of the pane. Select the arrow in the upper right corner to expand or reduce the pane.
-
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 sent to the server when Grafana queries the data source.
-
Error tab – Shows any errors. Only visible when a query returns an error.
Downloading raw query results
Amazon Managed 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.
To download raw query results
-
Edit the panel that contains the query data you want to download.
-
In the query editor, select Query Inspector.
-
Select 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. Select a column heading to reorder the data.
-
-
To see data before the system applies field overrides, select the Formatted data toggle.
-
To download a CSV file specifically formatted for Excel, select the Download for Excel toggle.
-
Select Download CSV.
Inspecting 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.
To inspect query performance
-
Edit the panel that contains the query with performance you want to inspect.
-
In the query editor, select Query Inspector.
-
Select Stats.
Statistics are displayed in read-only format.
Inspecting query request and response
You can inspect query request and response data when you want to troubleshoot a query that returns unexpected results, or fails to return expected results.
-
Edit the panel that contains the query you want to export.
-
In the query editor, select Query Inspector.
-
Select Refresh.
The panel populates with response data.
-
Make adjustments, as necessary and re-run the query.
-
To download the query request and response data, click the Copy to clipboard icon and paste the results into another application.