Hi. I am using a BigQuery source and trying to set up alerting (not using templates or variables). I am getting the following response when testing my rule: "error:“request handler error: plugin unavailable”
I’m hoping to follow up on your first and third points after I hopefully get the proper organization permissions for our Grafana account from on of our org’s administrators. All I can see about the Grafana version right now is “Grafana v8.5.24(d29920a244)” I suppose it is some enterprise version of Grafana being managed by my organization but hopefully I can see more details if I receive more permissions from our org’s administrator.
Here is my query with some confidential content modified:
SELECT TIMESTAMP(DATE_ADD(CAST(PARSE_DATE("%Y%m%d",ddate) AS datetime),
INTERVAL hour HOUR),"UTC") AS time,
present.r_m / past.r_m as dr_m,
present.r_m_f / past.r_m_f as dr_m_f,
present.r_matched_i_f / past.r_matched_i_f as dr_matched_i_f,
present.r_m_m / past.r_m_m as dr_m_m
FROM (select _table_suffix as ddate, * from `[redacted]`
where _table_suffix = (
SELECT
MAX(_TABLE_SUFFIX)
FROM `[redacted]*` )) as present inner join
(select FORMAT_DATE('%Y%m%d',DATE_ADD( PARSE_DATE("%Y%m%d",_table_suffix), INTERVAL 1 WEEK)) as ddate, * from
`[redacted]_*`
where _TABLE_SUFFIX = (
SELECT
FORMAT_DATE('%Y%m%d',DATE_SUB( PARSE_DATE("%Y%m%d",MAX(_TABLE_SUFFIX)), INTERVAL 1 WEEK))
FROM `[redacted]_*` )) as
past Using(ddate, c_v, hour)
However, in your case, we don’t know how the plugin was installed so if could you find that out and then create a new issue under the grafana/grafana repo adding the information provided, we will forward it to the engineering team that maintains bigquery as a datasource and take a closer look.
Thanks! I will look into this. Can I also just confirm that BigQuery is supported as a data source for alerting? I am not seeing it here: Data sources | Grafana documentation
yes, the alerting squad just confirmed that it is supported and that they will be updating the docs
PS. there may be some more data sources that are not listed and documented as alertable but are usable in Grafana Alerting. We will look into it, and update the list accordingly