-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
influxdb & grafana, absence of data on the graphs #8050
Comments
I had the same problem discribed above with OS Ubuntu 16.10 after the update from InfluxDB version 1.1 to 1.2. As a solution I downgraded to 1.1 again, which is working without problems |
A 502 might indicate that the proxy timed out during the query. Have you tried switch to querying influxdb directly? Also, are there any errors in the influxdb logs associated with those queries? What are the actual queries you are running that are returning 502 from grafana? |
@jwlighting my running influxdb instance was also updated from 1.1 to 1.2 version. @jwilder yes, I have tested both direct and proxy access to influxdb. |
@oshamin Are there errors in the influxdb logs? Can you include the logs for those queries? |
@jwilder It looks like not all queries come to influxdb. I made video. Then there are two possibilities, either queries are not logged properly or it is grafana bug. How do you think should I create issue in grafana tracker? |
@oshamin Can you enable HTTP logging on influxdb?
|
here is log. There is only one http request per refresh. |
@oshamin Try w/o the proxy config so that grafana is not in the middle of the browser and the databases. If there is no HTTP log for the failed queries, then the query is not reaching influxdb for some reason. |
@jwilder the result is the same either via proxy or direct access. And not all http queries are logged. I also checked connections with tcpdump. After refreshing page, tcpdump registers more then one new TCP SYNC. And here is connection view from browser side. |
I'm seeing the same sorts of things happening with 1.2 and grafana. In one graph I can see up to 7 lines (each one has a different tag value), but no more. When I look at the raw json being returned, I see |
@jwilder console client also does not work. $ influx -precision rfc3339
Failed to connect to http://localhost:8086: Get http://localhost:8086/ping: EOF
Please check your connection settings and ensure 'influxd' is running.
$curl -v http://localhost:8086/ping
* About to connect() to localhost port 8086 (#0)
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8086 (#0)
> GET /ping HTTP/1.1
> User-Agent: curl/7.29.0
> Host: localhost:8086
> Accept: */*
>
* Recv failure: Connection reset by peer
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer
$ ps aux|grep influxdb
influxdb 30356 6.5 2.6 497440 157016 ? Ssl 01:05 0:40 /usr/bin/influxd -config /etc/influxdb/influxdb.conf and in log file only write requests are logged (POST). How can I help to find a cause of the problem, what information do you need? |
Same problem. Before I stopped using 1.2.0 I noticed the same issue, but didn't research too much as had to revert due to '_' issue and 1.1.4 started working again. Would like to move to 1.2.1 so here are some repro steps. Steps to reproduce:
|
Hi @gerrickw, what do you mean by "Ys."? Can you show image? |
Grouping by Ys. In this case from the script there are 50 Xs by 80 Ys. So each Y is an aggregated view of max() of all of the Xs. So a large grid or shards that is showing the max value of the largest X of the Y. Images showing the same query with only changing the amount of time queried in the graph. Notice the legend showing suddenly more data, even though the same query. With influxdb 1.1.4, the legend always shows 80 Ys no matter the time range. |
@gerrickw Can you see if setting:
resolves that? |
@jwilder Setting to 0 no longer causes the issue. Hmm, seems odd to suddenly make a default. This makes it appear it is a bug with influx not giving all of the data or possibly make the user believe there are no other values and drawing incorrect conclusions. But this fixed my issue, so possibly this isn't related to main issue here. |
Here is the Grafana ticket on this issue, grafana/grafana#7380 |
It seems to be how InfluxDB now returns the json results in chunks, which is good but Grafana does not support it. Is there some way to disable the chunked feature? |
does indeed solve this |
Fixed via #8133 |
System info:
OS: CentOS Linux release 7.3.1611 (Core)
influxdb: influxdb-1.2.0-1.x86_64 (https acccess)
grafana: grafana-4.1.2-1486989747.x86_64
Steps to reproduce:
I faced the problem, that grafana shows always "InfluxDB Error: undefined" after influxdb works for awhile.
Here is how it is presented, you can see exclamation mark on the upper left side with error (InfluxDB Error: undefined).
Dashboard loads
![refresh1](https://camo.githubusercontent.com/e59645453276c9de07bd2d284698fd5b187319edaf26f437a4d429bde216a46b/68747470733a2f2f7332332e706f7374696d672e6f72672f376e626577646467622f696d6167652e706e67)
Waited ~2 seconds and clicked on refresh
So after clicking refresh some graphs show data and some not.
The InfluxQL queries are registered in logs without errors.
But in grafana logs some queries have response code 200 and some have 502, when queries are proxied via grafana.
Additional info:
If I only open one graph, then response is always successful.
Moreover the problem disappears after influxdb restarted and then appears after 5-10 minutes again.
my config is here
What can be a cause of such inconsistent behavior?
The text was updated successfully, but these errors were encountered: