Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

graph not compatible with those written in InfluxQL #110

Open
cyanghsieh opened this issue Jun 2, 2020 · 3 comments
Open

graph not compatible with those written in InfluxQL #110

cyanghsieh opened this issue Jun 2, 2020 · 3 comments

Comments

@cyanghsieh
Copy link

Environment:
Grafana 7.0
Flux[BETA] 7.0.0
InfluxDB 1.7.8

In InfluxQL I wrote:

SELECT value FROM myMeasurement WHERE $timeFilter

then get a complete graph

when I tried with FLUX:

from(bucket: "mydb/autogen")
  |> range(start: v.timeRangeStart, stop:v.timeRangeStop)
  |> filter(fn: (r) => r._measurement == "myMeasurement")

I believe these two scripts will return same result, however in FLUX some data was missing. Also, in Chronograf it shows similar to those in InfluxQL

Here's how these 3 graphs looks:

InfluxQLvsFLUX.png
Chronograf.png

@cyanghsieh
Copy link
Author

I found that it's because the default "max data points". Please ignore this dumb question and sorry for the inconvenience.

@ryantxu
Copy link
Member

ryantxu commented Jun 2, 2020

It is caused by max datapoinys... So the query should likely included a group claues.

However grafana should make a more clear warning when it stops reading based on the maxdatapoints

@lephisto
Copy link

lephisto commented Nov 3, 2020

I think this is related to grafana/grafana#26484

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants