raintank / crate-datasource

Apache License 2.0
13 stars 8 forks source link

groupInterval should allow $interval variables in 'auto_gf' #52

Open seanlook opened 6 years ago

seanlook commented 6 years ago

My metrics are collected every 5 minutes, so I group my data 5 minutes to show data points.

But in CrateDB here I've to choose auto_gf or other intervals that supported in date_trunk.

I usually use template variable $interval in my grafana dashboard, any values like 1s, 10s, 30s, 5m could be set, but can't use it in this crate-datasource plugin.

(I use raw sql for now, but can't use $interval too. Like mysql datasource pluagin, $__timeGroup function wrap this to do what I want)