Trouble with Grafana Plugin's Group By Feature

TLDR Victor has issues with Grafana plugin's 'group by' feature. Hengfei and omkar help troubleshoot, discovering the 'sql_mode' isn't working. A fix is implemented, but more issues arise.

Photo of Victor
Victor
Thu, 22 Jun 2023 05:05:48 UTC

Hi, for grafana plug-in , does support aggregations ? In grafana show error using group by.

Photo of Hengfei
Hengfei
Fri, 23 Jun 2023 03:09:28 UTC

Enable `SQL MODE` then you can use `group by`

Photo of VictorGuillen
VictorGuillen
Fri, 23 Jun 2023 03:46:57 UTC

I enabled SQL_MODE in grafana, but have : message.SearchSQLNotValid ( sql_mode=context, Query SQL does not supported [limit|offset|group by|having|join|union] )

Photo of Hengfei
Hengfei
Fri, 23 Jun 2023 03:57:23 UTC

omkar it looks `sql_mode` not working in Grafana. Can you check it?

Photo of Victor
Victor
Mon, 26 Jun 2023 13:07:00 UTC

Do you have a los old version of plug-in that work with group by?

Photo of omkar
omkar
Mon, 26 Jun 2023 14:00:27 UTC

Victor The issue regarding group by has been fixed. Please can you try now.

Photo of Victor
Victor
Wed, 28 Jun 2023 04:33:23 UTC

Hi, I testing the new version , in new panel if swich to SQL mode, send error

Photo of VictorGuillen
VictorGuillen
Wed, 28 Jun 2023 04:35:13 UTC

Photo of Victor
Victor
Wed, 28 Jun 2023 04:44:41 UTC

For grafana , do you have an example of query to graph with time series panel?, for example count group by some field?

Photo of omkar
omkar
Thu, 29 Jun 2023 07:09:08 UTC

Victor In plugin Explore is supported and we are working on dashboard panels.