I have version 6.0.2 installed on a 64-bit machine running Windows 10 (grafana-6.0.2.windows-amd64). I am accessing the internet via a 4G mobile hotspot, which is my only option.
I can run dashboards with TestData, but cannot connect to ANY datasources! The one I need to connect to is InfluxDB.
I keep getting ‘Network Error: Not Found(404)’ or ‘Error 502: Bad Gateway’… or similar. I have tried turning off my firewalls but still no luck.
I’ve been trying to install various downloadable dashboards that (I think) have a datasource included… but but just can’t work out what is required of me to set it up!
I’m completely new to this and can’t find ANY explanation of how all this hangs together…
The only change in my config.ini from sample.ini is - “http_port = 8086”
It would be great if I could find some sample data with a username and password to test this out on. At the moment I don’t know whether it’s my setup or I’m just connecting in the wrong way…
Just go into Add Datasource and select Influx and put in the details there. Then click the Test button at the bottom.
If that doesn’t work show us what you have entered.
Did you go through the process of creating the influx database on your computer? If so then the default port for influx is 8086 so you want http://localhost:8086, not 3000. You don’t need Skip TLS Verify as you are not using https access. The user and pwd are for access to the database so are nothing to do with the grafana ones, so unless you specified them when you setup the db then you don’t need those.
Sorry, I did realise it was 8086… that example was just where I was losing the plot for a while!
“Did you go through the process of creating the influx database on your computer?” I thought InfluxDB was bundled with Grafana? I’m sorry, I don’t quite understand… I was under the impression that I’m just trying to connect to a stream of data?
I don’t know whether influx is packaged with your grafana or not, that might depend on how you installed it. The influx datasource plugin is packaged as standard but that is not the issue. The issue is the influx software itself. On the page you linked to it tells you how to create the database, download the data and write it to the db. Did you do that? If you did then you should be good to go.
[Edit] and no you do not connect Grafana to a stream of data. You connect Grafana to an influx database which has the real world data stored over a period of time (so you can go back and look at historical values).
From a Windows users’ perspective, it wasn’t clear how I should install and run InfluxDB locally. I have now run influxd and influx from the cmd prompt, and pulled in the data… and have successfully created a datasource!
I have the same issue and I tried all those steps and I am still getting the same error. Is there any other way I can get this problem fixed ? I am Grafana v7.1.5
Show us how you have configured the datasource.
What happens when you run the influx command line app to connect to the database?
What OS are you running?
The same questions that I asked the previous poster apply. Show us how you have configured the datasource and tell us whether you can access the db using the influx command line client. Also what OS are you using?
I can also confirm I ran chronograf and could connect to the telegraf database within seconds of adding it as a Connection using the exact same URL as what 'm using as a datasource URL in Grafana namely http://localhost:8086