Using Grafana's Query Inspector to troubleshoot issues


Query Inspector is a new feature that was added to Grafana v4.5. It shows query requests and responses.
This can be helpful if a graph is not shown or shows something very different than what you expected.
Depending on the data source the response will look different.

The Query Inspector can be found under the metrics tab inside panel edit mode.

First you should check and see if there is anything unexpected or wrong in the query Grafana sends to your database or in the response.


Here there is no graph so I click Query Inspector to open the Query Inspector.

In Query Inspector I can see the query and that it is getting a response. To see the response I can click Expand All or as in this case datapoints. (Be careful if you Expand All since there can be a lot of data). All the nodes can be opened and closed by clicking on them.

I can now see that data is being returned and the reason I cannot see the graph is that the value is null.

If you think Grafana is showing the data incorrectly then you can open a bug report.
Copy the response by clicking Copy to Clipboard (All the data will be copied wether expanded or not).

Paste it with your question(remove any sensitive data).

Grafana for processing monitoring
Problem with query to display graph
Elasticsearch-failed to parse search source. unknown search element [docvalue_fields]
Singlestat Sum and count issue
Stacked graph with percent
My graphs only work if i browse with firefox
Graph is not visible after changing time range
Microsecond Resolution from Influx
Count Metric Usage
Showing "Invalid number" at "Status panel"
Showing "Invalid number" at "Status panel"
How to exploit the UCD-SNMP-MIB laLoad table with the TIG stack?
Single stat background bug
Dashboard HAProxy doesn't work
Hopefully Simple Grafana Alerting Issue with Prometheus data source (tsdb.HandleRequest() error invalid value type)
Problem with corret information displayed in hover tooltip
maxSeries returns lower max after zooming out
[Plugin] Data format is required for a graph. Data source works as a table but not for a graph
How can i speed up the loading time of some modules in grafana
Templating, multi value problem
How to get the latest value from range, based on time
Graph lines are invisible and not showing correctly
Unable to get response from json request
Data Missing Past Midnight (ES Data Source)
PRTG Stats Keep Changing From GB to TB and Back Again
Give me an example query sql for panel D3 Gauge table
Grafana Graph does not show all values over longer time range elasticSearch DB
The Avg value in elasticsearch is incorrect

At the risk of sounding obtuse… I came to the documentation to find out how to GET TO the query inspector, however I cannot find it in 4.6.2 and this document fails to start off with navigating to the query inspector view.

To make matters worse, googling for how to get to the view keeps taking me back to this document.


A post was merged into an existing topic: Give me an example query sql for panel G3 Gauge table


A post was split to a new topic: Influxdb has different timezone - problem with query