michelin / snowflake-grafana-datasource

Snowflake Grafana datasource plugin enables the visual representation of Snowflake data within Grafana dashboards and manages alerts.
Apache License 2.0
68 stars 33 forks source link

Timeseries-wide group by 2 coloumns #19

Closed kranthikirang closed 2 years ago

kranthikirang commented 2 years ago

Grafana Version: 9.1.1

Executed Query:

SELECT $__timeGroup(DATETIME,$__interval) as Time, HOST as metric, (max(USED/1024*1024)/max(TOTAL/1024*1024)*100) AS used_percent FROM SERVER_MEMORY WHERE $__timeFilter(DATETIMEUTC,$__interval) AND SERVICE='service1' GROUP BY 1,2 ORDER BY 1

Using mysql

image

Where as using snowflake plugin

image

Expected result: We should see a separate column for each HOST(metric) in a given time series