Grafana will not connect to InfluxDB

Database, username and password compatibility definitely work. The following configuration for grafana is not the same.

datasources: {
  influxdb: {
    type: 'influxdb',
    url: "http://XXX.XXX.XXX.XX:8086/db/dbname",
    username: 'username',
    password: 'password',
    default: true
  },
},

I tried to remove the parameter defaultby changing influxdbto influxand adding /seriesto the url, but to no avail. Has anyone got this to work?

  • InfluxDB v0.7.3 (git: 216a3eb)
  • Grafana 1.6.0 (2014-06-16)
+4
source share
4 answers

I use this configuration below and it works. Try pasting the grafana database in your db and add the grafana db configuration.

...

data sources: {

    influxdb: {
      type: 'influxdb',
      url: "http://localhost:8086/db/test",
      username: 'root',
      password: 'XXXX'
    },
    grafana: {
      type: 'influxdb',
      url: "http://localhost:8086/db/grafana",
      username: 'root',
      password: 'XXXX',
      grafanaDB: true
    }
  },

...

+5
source

, , annelorayne . , Grafana localhost: 8086, IP- ( 10.0.1.100:8086).

, "telnet localhost 8086" .

Grafana , :

  datasources: {
    influxdb: {
      type: 'influxdb',
      url: "http://10.0.1.100:8086/db/collectd",
      username: 'root',
      password: 'root',
      grafanaDB: true
    },
    grafana: {
      type: 'influxdb',
      url: "http://10.0.1.100:8086/db/grafana",
      username: 'root',
      password: 'root'
    },
  },

, , . telnet , Grafana.

+2

. . thread1, thread2, thread3. , grafana InfluxDB

0

config.js . / grafana. , .

Check the contents of config.js with grafana (host: port / config.js).

0
source

Source: https://habr.com/ru/post/1545279/


All Articles