title: Connecting grafana to influxdb
body: <p>I'd like grafana to get data from influxdb.  They're running on the same host.  I've not had much joy here.</p>
  
  <p>I've turned on authentication in influxdb.  I've an admin account with password, and I can use those credentials to connect to influxdb on the commandline.</p>
  
  <p>When I try to connect via grafana, I see I can choose "basic auth" or not.  I'm not sure what credentials are requested at basic auth, but whether or not I check that box, I see the (not very helpful) error at the bottom.</p>
  
  <p><a href="https://i.stack.imgur.com/fO7BF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fO7BF.png" alt="enter image description here"></a></p>
  
  <p>My influxdb http config looks like this:</p>
  
  <pre><code>[http]
    # Determines whether HTTP endpoint is enabled.
    enabled = true
  
    # The bind address used by the HTTP service.
    bind-address = ":8086"
  
    # Determines whether HTTP authentication is enabled.
    # auth-enabled = false
    auth-enabled = true
  </code></pre>
  
  <p>I've also tried changing <code>s/localhost/0.0.0.0/</code> in the grafana dialog just in case, but that doesn't change the outcome.</p>
  
  <pre><code>ubuntu@loire1:/tmp$ sudo netstat -tunapl | grep influx
  tcp6       0      0 :::8086                 :::*                    LISTEN      10399/influxd   
  tcp6       0      0 :::8088                 :::*                    LISTEN      10399/influxd   
  udp        0      0 127.0.0.1:25826         0.0.0.0:*                           10399/influxd   
  ubuntu@loire1:/tmp$ 
  </code></pre>
  
  <p>Any pointers?</p>