Influxdb chronograf:使用OAuth 2.0时无法添加默认XDB连接
我将Chronograph配置为使用通用OAuth 2.0(使用cloud foundry UAA)。用户身份验证工作正常,但问题是没有考虑默认的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
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
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"
}