InfluxDB binding spec
Detailed documentation on the InfluxDB binding component
配置
To setup InfluxDB binding create a component of type 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 明文存储。 更推荐的方式是使用 Secret 组件, 这里。
元数据字段规范
字段 | 必填 | 绑定支持 | 详情 | 示例 |
---|---|---|---|---|
url | Y | Output | The URL for the InfluxDB instance | “http://localhost:8086“ |
token | Y | Output | The authorization token for InfluxDB | “mytoken” |
org | Y | Output | The InfluxDB organization | “myorg” |
bucket | Y | Output | Bucket name to write to | “mybucket” |
绑定支持
该组件支持输出绑定,其操作如下:
create