Hi, after updating Grafana from v7 to v8, my dash visualization stopped working. I matched that after v8 grafana changed time-based query syntax.
My previous query:
SELECT DATE_FORMAT(mydate,"%d %m %Y") AS "time", sum(energy) AS metric FROM zabbix.consumptions
where host_name="StoykaMain"
group by mydate order by mydate desc
But it shows an error:db convert time column failed: column type "[]*string" is not convertible to time.Time
I’ve tried to resolve and I’ve got this query:
SELECT mydate*1 AS time, sum(energy) AS metric FROM zabbix.consumptions
where host_name="StoykaMain"
group by mydate order by mydate desc