grafana / influxdb-flux-datasource

Grafana datasource plugin for Flux (InfluxDB)
Apache License 2.0
51 stars 21 forks source link

Fix range error in queries #39

Closed davkal closed 5 years ago

davkal commented 5 years ago

Query expansion puts the range statement at the end, which trips up Flux. This change puts it at the beginning of the expression.

Here is the original error:

,error,reference
,"error in building plan while starting program: cannot submit unbounded read to ""telegraf""; try bounding 'from' with a call to 'range'",

Test this by using telegraf..cpu..usage_system as a query and accept the expanding suggestion.

davkal commented 5 years ago

Fixes #32

davkal commented 5 years ago

Bump @briangann