-
Notifications
You must be signed in to change notification settings - Fork 77
Occur Query run error when alerting #303
Comments
I researched this issue more. And I got a clue. bigquery-grafana/pkg/plugin.go Lines 85 to 106 in 204890b
It seems that elements of
So I think elements of |
Fixes doitintl#303 partially Signed-off-by: sshota0809 <8736380+sshota0809@users.noreply.github.com>
Hi @sshota0809 |
modify args of logger so that it follows key/value pairs(Fixes #303 partially)
I get the same error when testing an alert rule in Grafana:
The query is the following and includes the project id:
The datasource configured in Grafana also has the same project set ( |
@LiorRacer It seems like #304 only improved how this error is logged. Do you have additional insights on it or any tips how to circumvent it? |
Hi @thomasZen, |
We use version
For the query above I used the SQL editor. I also tried the queryBuilder. Using the query builder adds In the SQL editor is there a specific format one has to follow (in addition to including the timestamp, metric and value)? I also found the following structure in the codebase: bigquery-grafana/pkg/plugin.go Lines 30 to 51 in 236822d
bigquery-grafana expects all of these fields in the json object, right? |
@LiorRacer Was above information useful? Do you have an idea what I could improve in my setup to make alerts work? |
Hi, @thomasZen
In the case of using the SQL editor, I think you should also specify the GCP project number in the SQL builder. Because when the backend plugin executes query to BigQuery, it refers to the value of GCP project number specified in SQL builder. |
Thank you for seeing this issue.
Bug Report
when alerting I got "Query run error".
Expected Behavior
Grafana is done with alerting process.
Actual Behavior
Following logs are outputted.
Steps to Reproduce the Problem
Specifications
Detail
I reffered to source file where above error is implemented and then it seems Query Running is failed for some reasen.
bigquery-grafana/pkg/plugin.go
Line 187 in 756780e
But It seems strange that
err
object is expanded to%v
. So I had no idea why err is not nil.I implemented Query running program with BigQuery library in the same way. And I used same query but No Error happned.
Testing rule I used is following one.
The text was updated successfully, but these errors were encountered: