Grafana fails to display Influxdb data

Hi I am using Grafana 4.1.2 , on Ubuntu 16.04 xenial. I am publishing Snap-Telemetry data using snap-publisher for influxdb from a system on the private network to my controller system, I can see that the data is available in the influxdb, but Grafan fails to display the same. Same thing I have done locally on the controller with a different snap-plugin called process and published the data using same influxdb publisher and Grafana displays the data.
I checked the /var/log/grafana/grafana.log and its out put is.
t=2017-07-12T10:02:16+0530 lvl=info msg=“Request Completed” logger=context userId=1 orgId=1 uname=admin method=GET path=/query status=502 remote_addr=127.0.0.1 time_ms=0s size=0

and
t=2017-07-13T11:32:34+0530 lvl=eror msg=“Unable to load datasource meta data” logger=context userId=1 orgId=1 uname=admin error="Data source not found"
t=2017-07-13T11:32:34+0530 lvl=eror msg=“Request Completed” logger=context userId=1 orgId=1 uname=admin method=GET path=/api/datasources/proxy/23/query status=500 remote_addr=127.0.0.1 time_ms=0s size=49
t=2017-07-13T11:32:46+0530 lvl=eror msg=“Unable to load datasource meta data” logger=context userId=1 orgId=1 uname=admin error="Data source not found"
t=2017-07-13T11:32:46+0530 lvl=eror msg=“Request Completed” logger=context userId=1 orgId=1 uname=admin method=GET path=/api/datasources/proxy/23/query status=500 remote_addr=127.0.0.1 time_ms=0s size=49

Do you use multiple organizations in Grafana? Switch between them?

@torkel, Sorry did not get your question, all the systems are on the same private network

@torkel, Ok got it, we do not use multiple organizations in Grafana, we use single Grafana instance and single DB.

If need more information please let me know?

Output from chrome development tools attached

Basically I am new to grafana and need help badly…

If you go to the data sources section in Grafana, find your InfluxDB data source and press the Save and Test button does it work?

@daniellee, Yes save and Test works for Influxdb data source.

Output from another system

t=2017-07-12T17:22:20+0530 lvl=info msg=“Request Completed” logger=context userId=0 orgId=0 uname= method=GET path=/ status=302 remote_addr=10.224.61.43 time_ms=1 size=29 referer=
t=2017-07-12T17:24:17+0530 lvl=info msg=“Request Completed” logger=context userId=0 orgId=0 uname= method=GET path=/ status=302 remote_addr=10.223.189.172 time_ms=0 size=29 referer=

This issue got fixed, the issue was with Group By option, unchecked it and data got displayed, good learning, not much support on the net, hope this might help some one facing similar issue… I was digging my Snap-plugin code which had no issue :wink:

:blush:

That sounds very strange. Why would the group by produce an error saying that the data source cannot be found?

No Idea, but when I disabled it visualization of data started, Your are the right person to answer this I am new to Grafana.

Can you show the query with the Group By and the raw query that is sent to InfluxDB. You can get the raw query by looking at the request headers in the network tab in Chrome Dev Tools.

I have already attached the screen shot in this query please check

The query string parameters are cut off so hard to figure anything out.