-
Notifications
You must be signed in to change notification settings - Fork 22
Group() can't work in 7.0.0 #109
Comments
Sorry, I'm not using influxdb-flux-datasource with InfluxDB 1.7.x. Some logs for your reference. |
It is also OK from CLI. ./influx query --file ./cpu.flux --org-id 05c107f454510000 2020-01-25T15:01:00.000000000Z 850.2599999999998 2020-01-25T15:06:00.000000000Z 851.5700000000005 2020-01-25T15:11:00.000000000Z 844.2600000000003 2020-01-27T15:31:00.000000000Z 826.2900000000004 2020-01-27T15:36:00.000000000Z 825.0600000000001 2020-01-27T15:41:00.000000000Z 807.7400000000011 Log: |
flux support was added to grafana 7.1 (released today 🎉 ) -- I believe this issue is fixed, if not, please open an issue in https://github.com/grafana/grafana |
The following query can get correct result from both grafana and flux query.
from(bucket: "meas2")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "MS_PROCESS_MEAS")
|> filter(fn: (r) => r["_field"] == "CPUTIME")
"Metric request error" returned when adding group() clause and the correct result can be returned using flux query.
from(bucket: "meas2")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "MS_PROCESS_MEAS")
|> filter(fn: (r) => r["_field"] == "CPUTIME")
|> group(columns: [ "_time" ])
|> sum()
Influxdb: influxdb_2.0.0-beta.10_linux_amd64
Grafana: docker grafana/grafana:7.0.0
The text was updated successfully, but these errors were encountered: