InfluxDB错误:在涌入更新1到2之后,默认保留策略未设置为Grafana的数据库
我已经更新了涌入数据库,还绘制了数据库。但是现在,我在Grafana中得到以下问题:
- InfluxDB错误:未设置数据库
- InfluxDB错误的默认保留策略:未执行
可能是原因?我通过通量获得值而没有任何问题。但是,我想继续使用InfluxQl
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为了继续使用InfruxQl,您需要设置对于您的新2.x存储桶,因此InfluxQl可以像1.x数据库一样对待它们。你已经做了吗?
In order to continue using InfluxQL you will need to setup the Database/Retention Policy mapping for your new 2.x buckets, so that InfluxQL can treat them like 1.x databases. Have you done this already?
引用的文档:
示例:
我认为您可以将
默认>默认
更改为aut> autogen
(最后一个参数)。我使用默认
是Grafana 9使用的? (未确认)。您在错误消息中看到了这一点:当然您需要为每个存储桶创建这样的映射。
也许您还会发现它也有用的示例连接Grafana 9.1 - >涌入2.4。
请参阅
配置InfluxDB身份验证:
: https://docs.influxdata.com/influxdb/v2.1/tools/grafana/?t=influxql您需要以这种格式通过
授权>授权> >标题。里面有空间!
您可以在Infux Web GUI中产生令牌(它将很长,我认为Base64编码了?)
“ https://i.sstatic.net/iebt1.png” alt =“在此处输入图像说明”>
Docs to refer:
https://docs.influxdata.com/influxdb/cloud/query-data/influxql/dbrp/#create-dbrp-mappings
Example:
I think you may change
default
toautogen
(last parameter). I useddefault
as it is used by Grafana 9? (Not confirmed). You see this in your error message:Of course you need create such mapping for each bucket you have.
Maybe you will find it also useful example connection Grafana 9.1 -> Influx 2.4.
See
Configure InfluxDB authentication:
: https://docs.influxdata.com/influxdb/v2.1/tools/grafana/?t=InfluxQLIn this format you need to pass
Authorization
header. With space in it!You can generate token in Influx web GUI (it will be long and i think Base64 encoded?)