-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error 400 after upgrading grafana from 10.2.2 to 10.2.3 #1768
Comments
I can confirm this reproducible on the latest version of Zabbix server 6 LTS - 6.0.25 offending queries comparison between Grafana 10.2.2 and 10.2.3 : 10.2.2 (working): SELECT to_char(itemid, 'FM99999999999999999999') AS metric, clock / 15 * 15 AS time, AVG(value) AS value FROM history_uint WHERE itemid IN (42243) AND clock > 1704181979 AND clock < 1704203579 GROUP BY 1, 2 ORDER BY time ASC 10.2.3 (broken): SELECT CAST(itemid AS CHAR) AS metric, clock DIV 15 * 15 AS time_sec, AVG(value) AS value FROM history_uint WHERE itemid IN (42243) AND clock > 1704179801 AND clock < 1704201401 GROUP BY clock DIV 15 * 15, metric ORDER BY time_sec ASC PS those queries are for the same item on the same server - i.e. no changes on zabbix side |
Further investigation shows that "Direct DB connection" setting has been emptied after upgrade onto grafana v 10.2.3 Zabbix data source cannot see any Postgres DB anymore (however can see mysql ones) finally, grafana-zabbix is getting confused by the code grafana-zabbix-main\src\datasource\zabbix\connectors\sql\sqlConnector.ts: loadSQLDialect() { which explains the malformed query |
related to #1764 |
+1 Grafana: 10.2.3 |
summary of the probable cause:
|
this seems to be duplicate of #1764 , closing this one. |
After upgrading grafana from 10.2.2 to 10.2.3, existing dashboards using zabbix-grafana plugin return error 400 in Metrics panels
When changing again to 10.2.2 the dashboards are working fine. Looking for the error it seems that the query is malformed because executing the query in the database gives an error
Software versions
The text was updated successfully, but these errors were encountered: