-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After upgrading to 1.2.0: series missing for queries, depending on time interval supplied in group by time #7879
Comments
I took two screenshots in grafana to visualize the issue. I set a start- and end time and took a screen shot for 1.1.1 and then I only upgraded the db to 1.2.0 and refreshed the grafana graph (not the complete page only the data using grafanas update button), so it displays the exact same timeframe and thus uses the same query. As you can see the 1.2.0 result is missing many series (for example the sshd one) just like described in the issue and shown in the raw results that I attached in the issue. What I noticed is: The smaller I make the browser window (horizontally), the more series come up, meaning: the bigger the group by interval, the more series show up. |
I think this may be caused by a bug I fixed at the same time as when I implemented subqueries. If you notice, the responses in the 1.2 version have Can you see if Grafana is using |
Also, removing |
As far as I can tell grafana doesn't use chunked=true in queries. Also the response includes "partial": true, but no following request is performed. After setting max-row-limit to 0 in my influx config, the graph behaves as expected and all data is shown. So this is not an influx issue, but a grafana issue that their team is maybe not aware exists. Thanks for your response. |
I've also noticed this behavior. First in grafana but then also in InfluxDB admin interface - so it seems like InfluxDB issue. I have queries, that I execute in admin interface all at once: The number of results returned by the server depends on their order. C always seems to break it. I've also tried some other combinations: But everything for x = from 1s to 518s: I hope it's understandable :) |
The InfluxDB admin interface has the same issue since it doesn't use chunking. At the moment, there isn't very good library support for that feature. It's a work in progress. |
It seems that chunking is not supported in the Python client anymore (influxdata/influxdb-python#318) as it was removed in 2015? Is there a reason why it was removed? Because with InfluxDB 1.2.0 it seems that chunking is required (if one doesn't want to change the default configuration), but many client libraries don't even support it? |
We are going to continue trying to improve support in the client libraries for chunking so the out of box behavior is better in the future, but until then, please just set Sorry for the inconvenience. |
In Grafana, i find one of the series hidden. I had initially filed a bug in Grafana assuming that Grafana was hiding it. I still find Partial:true in the query response for the series in problem in grafana end. Am i missing additional configuration in InfluxDB ? How should i set chunk=false and chunk size in grafana/influxDB as a configuration setting. |
Does anyone experience the problem similar to mine ? Even after setting max-row-limit to zero, i see partial:true and a series hidden. I'm in the latest version of influxdb and grafana. |
@temenoskrpavithra please attach your config. |
Here is the config file that was generated post installation. This is a basic setup and we are in the initial stage of testing this with grafana. |
@temenoskrpavithra Your Change:
to
The were initially commented out, but we fixed that in cbb689e because it caused confusion for many people. |
Thank you for your reply. On enabling [http] i start getting authentication related errors now. In influxdb.config, below is the setting
In influx editor, I'm able to view all DBs and query all DB data. I have granted ALL privileges to the ID in the DB. What is the recommended settting within http in the config file and what should be the authentication method from grafana end ? |
Since you had the |
Yes, i agree to that. I have one admin user in InfluxDB and using that ID to connect from grafana end, ay, to couple of DBs in InfluxDB. They are connected successful and i see the charts. |
I got it working. That was some cache related issue on the browser. I opened another browser and found that it works fine. Thank you very much for your help. |
Bug report
After upgrading InfluxDB from 1.1.1 to 1.2.0 I noticed that some series where missing in my grafana graphs. For some reason these series reappeared when decreasing the browser window width (which leads to a bigger time interval supplied in the Group By time() statement that grafana generates.
I then looked deeper into the queries and executed the exact same query on the same data using InfluxDB 1.1.1 and 1.2.0 and compared the results. The data I operated on where application based cpu measurements (written every two minutes) which I grouped by app tag.
The query grafana (and I) performed was:
curl -G http://localhost:8086/query --data-urlencode "db=mydb" --data-urlencode "q=SELECT max("value") FROM "cpu_app" WHERE time > 1485323700000ms - 7d GROUP BY time(5m), "app" fill(null)" --data-urlencode "epoch=ms"
For an interval time of 5 minutes the result included 15 series (apps) for influxdb 1.1.1 and only 5 series for influxdb 1.2.0.
When using an interval time of 1 hour the results included 15 series for both versions, which is the expected behavior.
I don't understand why there is a difference between 1.1.1 and 1.2.0 for the 5 minute interval version and I really don't know what's happening here. It's hard to give any more useful information, because I don't know what other info I could supply.
I'll attach the results of the 4 queries, so you can see the difference between the versions.
influx-check.tar.gz
Please let me know what other info I can supply to help you solve this problem.
System info:
InfluxDB 1.2.0
Debian Jessie
.deb install
Steps to reproduce:
Expected behavior:
The number of series is equal for 1.1.1. and 1.2.0 for all queries
Actual behavior:
The number of series differs depending on the interval size when compared to the complete queried time frame. I guess the relation between interval size and queried time frame is important here, but I don't know how exactly.
The text was updated successfully, but these errors were encountered: