Display generated SQL query

I am using the query editor with bq back-end in “edit mode”. the documentation https://grafana.com/docs/grafana/latest/features/datasources/mssql/. mentions a “generated sql” button I can use to inspect the query sent to the back-end with all macros and variables resolved by grafana. The documentation on the bq plugin https://github.com/doitintl/bigquery-grafana also mentions you can see the “clean query” via the query analyizer’s “query” button.

In grafana 6.7.4, neither of these statements is true. Is there a way to see the generated SQL query from editor mode in grafana 6.7.4?

Thanks in advance

Answering my own question, Grafana logs the generated SQL query to the browser console log, so you can catch it there.

1 Like