The documentation you are viewing is for Dapr v1.12 which is an older version of Dapr. For up-to-date documentation, see the latest version.
InfluxDB 绑定规范
有关 InfluxDB 绑定组件的详细文档
配置
要设置 InfluxDB 绑定,请创建一个类型为 bindings.influx
的组件。 请参阅本指南,了解如何创建和应用绑定配置。
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: <NAME>
namespace: <NAMESPACE>
spec:
type: bindings.influx
version: v1
metadata:
- name: url # Required
value: <INFLUX-DB-URL>
- name: token # Required
value: <TOKEN>
- name: org # Required
value: <ORG>
- name: bucket # Required
value: <BUCKET>
Warning
以上示例将密钥明文存储, 更推荐的方式是使用 Secret 组件, 这里。元数据字段规范
字段 | 必填 | 绑定支持 | 详情 | 示例 |
---|---|---|---|---|
url | 是 | 输出 | InfluxDB 实例的 URL | "http://localhost:8086" |
token | 是 | 输出 | InfluxDB 的授权令牌 | "mytoken" |
org | 是 | 输出 | InfluxDB 组织 | "myorg" |
bucket | 是 | 输出 | 要写入的存储桶名称 | "mybucket" |
绑定支持
该组件支持如下操作的 输出绑定 :
create
相关链接
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.