Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Influxdb chronograf:使用OAuth 2.0时无法添加默认XDB连接_Influxdb_Chronograf - Fatal编程技术网

Influxdb chronograf:使用OAuth 2.0时无法添加默认XDB连接

Influxdb chronograf:使用OAuth 2.0时无法添加默认XDB连接,influxdb,chronograf,Influxdb,Chronograf,我将Chronograph配置为使用通用OAuth 2.0(使用cloud foundry UAA)。用户身份验证工作正常,但问题是没有考虑默认的XDB连接。事实上,这种配置是有效的: chronograf --log-level="debug" --resources-path="/usr/share/chronograf/resources" --influxdb-url="http://influxDB.log.database:8086" --influxdb-username="us

我将Chronograph配置为使用通用OAuth 2.0(使用cloud foundry UAA)。用户身份验证工作正常,但问题是没有考虑默认的XDB连接。事实上,这种配置是有效的:

chronograf  --log-level="debug" --resources-path="/usr/share/chronograf/resources" --influxdb-url="http://influxDB.log.database:8086" --influxdb-username="usename" --influxdb-password="pass"
以下是
/usr/share/chronograf/resources
文件夹的内容:

influxdb.src:

{
  "id": "9999",
  "name": "MyInfluxDB",
  "username": "user1,
  "password": "password1",
  "url": "http://influxDB.log.database:8086",
  "type": "influx",
  "insecureSkipVerify": true,
  "default": true,
  "telegraf": "telegraf.autogen",
  "organization": "Default"
}
当chronoraf启动时,会自动创建两个连接:

  • MyxDB
但是当我使用以下选项运行chronograf时(使用OAuth 2.0创建一个XDB连接):


OAuth 2.0工作正常,但一旦重定向到chronograf仪表板,我就看不到连接,即使我手动创建了连接并登录,我也找不到任何在启动时自动创建的连接。

字段
组织
需要一个id。
id
用于
Default
组织使用小写的
d
。如果您将src文件更改为

{
  "id": "9999",
   "name": "MyInfluxDB",
   "username": "user1,
   "password": "password1",
   "url": "http://influxDB.log.database:8086",
   "type": "influx",
   "insecureSkipVerify": true,
   "default": true,
   "telegraf": "telegraf.autogen",
   "organization": "default"
}
现在应该可以了

您可以在这里看到id在源代码中的定义位置

{
  "id": "9999",
   "name": "MyInfluxDB",
   "username": "user1,
   "password": "password1",
   "url": "http://influxDB.log.database:8086",
   "type": "influx",
   "insecureSkipVerify": true,
   "default": true,
   "telegraf": "telegraf.autogen",
   "organization": "default"
}