grafana / influxdb-flux-datasource

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

Metric request error in 7.1.0 #122

Closed fhriley closed 4 years ago

fhriley commented 4 years ago

I'm still getting some metric request errors in 7.1.0. This query will do it:

from(bucket: "dns")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r["_measurement"] == "queries"
    and r["_field"] == "id"
    and r["tap_type"] == "CLIENT_RESPONSE"
    and r["status"] == "NXDOMAIN")
  |> group(columns: ["qname"])
  |> count()
  |> group()
  |> sort(columns: ["_value"], desc: true)
  |> yield(name: "count")

This query was copied from influxdb2/chronograf.

ryantxu commented 4 years ago

can you post an issue in: https://github.com/grafana/grafana

please include sample output we can test with: https://github.com/grafana/grafana/tree/master/pkg/tsdb/influxdb/flux/testdata