Closed ryantxu closed 5 years ago
I also changed the function signature to send a string and use application/vnd.flux
rather than wrap things in a json object
To get the database test query to work it looks like all queries require a range. I put:
const query = `from(bucket:"${this.bucket}")
|> range(start:-10y)
|> last()`;
but I don't like it. any other option would be great
Looks like this duplicates some of @mattttt work from: https://github.com/grafana/influxdb-flux-datasource/compare/bucket-updates
+1
Dear @ryantxu and @davkal,
do you see any chance for merging this? #15 and #21 have been related to this guy missing from master.
Thanks, Andreas.
Looking at this now.
Hi David,
thank you so much for merging this and cutting a new release.
Cheers, Andreas.
It looks like the flux syntax in 1.7+ requires a
bucket
parameter rather than adb
parameter. This patch changes db to bucket. See:https://docs.influxdata.com/flux/v0.7/introduction/getting-started/query-influxdb/