我正在尝试在 Grafana (v 10.2.2) 中设置 InfluxDB Cloud 数据源,但无法找到我的数据库或存储桶。
我正在关注 this 如何设置连接的示例,但 Grafana 给出错误
“找不到数据库:testBucket 读取 influxDB 时出错”
这是我的 grafana 配置:
我在这里做错了什么?当我将此数据源设置为 Flux 数据源并为其提供适当的 api 令牌时,它工作正常。
如文档所述:如果您想将 InfluxDB2 实例与 InfluxQL 一起使用,您需要 创建到您的存储桶的 DBRP 映射:
influx v1 dbrp create \
--db example-db \
--rp example-rp \
--bucket-id $YOUR_BUCKET_ID \
--default
influx v1 auth create \
--read-bucket $YOUR_BUCKET_ID \
--write-bucket $YOUR_BUCKET_ID \
--username joecool
example-db
、
joecool
以及第二步中提示输入的密码将 Grafana 连接到您的 InfluxDB2 实例,该实例(或多或少)的行为类似于 InfluxDB1 实例。