How to troubleshoot metric query issues


If you get a panel query error or not seeing the data you expect to see the most important thing to do
is view the query Grafana sends to your database and what the raw response is. This information is not built into Grafana yet but can be easily investigated using Browser Dev Tools.

To open Chrome Dev Tools (F12, Ctrl+Shift+I on windows, Cmd+Opt+I on Mac), go the network tab. Hit refresh on the Grafana dashboard so Grafana sends a new data query. Try to find the query in the list of network calls in the Network tab.

Try to see if there is anything unexpected or wrong in the query Grafana sends to your database. View the response carefully. After viewing the response and still think Grafana is showing the data wrongly then you can open a bug report. Make sure you include the query sent, and the response (remove any sensitive data).

The panel json model can also help in identifying the problem.

Glances + InfluxDB + Grafana | Grafana shows no data
Help with metric aggregation
Grafana can't show es5 field
Can't query elasticsearch data source from grafana
Influx comparison problem
I am getting negative sum on my singlestat panel but all of my values are positive
Itens doesn't show on grafana
Label_values(metric, label) prints surplus results for a long period of time (old metric values)
Could not display charts in panel
Grafana/InfluxDB - Network Error: undefined(undefined)
Upgrade 4.2 issue ES 5.2
Hide metrics in past days
Templating, multi value problem
Duplicate Outputs in Grafana Table
Zabbix toner left value null
[Resolve] Grafana - InfluxDB : "InfluxDB Error: undefined"
[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
Unable to get response from json request
Getting line connected points over a series
Grafana won't talk to Elasticsearch instance
Grafana not responding properly
Grafana not responding properly
Singlestat not displaying the "true" value
Grafana alerting error
Wrong Elasticsearch query
Table Panel with Strange Behaviour
Gauge Thresholds
Wrong value in graph with bars
Data disappears when grouping a count by a term
Table panel for table transform
Custom plugin not working on Grafana 4.4
Grafana: Zabbix plugin. Incorrect line display on graph

Bars don't appear for just one data series
Need help with Cloudwatch custom metrics
Cannot read property 'toString' of undefined
Opentsdb and worldmap panel
Wrong calculation of average (per hour) - correct with graphs
Create grafana Dashboard from elasticsearch Souce failed
Singlestat gauge doens't like negative values
Weird negative values (Bug maybe?)
How to get started
Only "All" Value Available For Template Variable Selection
Connecting Grafana to Prometheus
Prometheus Annotation Issue
Strange results from InfluxDB functions
Switch grafana from http to https, all grpahs are gone
Missing parts in Graphs
Grafana for processing monitoring
Microsecond Resolution from Influx
Single stat background bug