InfluxDB binding spec

Detailed documentation on the InfluxDB binding component

配置

To setup InfluxDB binding create a component of type bindings.influx. See this guide on how to create and apply a binding configuration.

  1. apiVersion: dapr.io/v1alpha1
  2. kind: Component
  3. metadata:
  4. name: <NAME>
  5. namespace: <NAMESPACE>
  6. spec:
  7. type: bindings.influx
  8. version: v1
  9. metadata:
  10. - name: url # Required
  11. value: <INFLUX-DB-URL>
  12. - name: token # Required
  13. value: <TOKEN>
  14. - name: org # Required
  15. value: <ORG>
  16. - name: bucket # Required
  17. value: <BUCKET>

Warning

以上示例将密钥明文存储, It is recommended to use a secret store for the secrets as described here.

元数据字段规范

字段必填绑定支持详情Example
urlY输出The URL for the InfluxDB instancehttp://localhost:8086
tokenY输出The authorization token for InfluxDB“mytoken”
orgY输出The InfluxDB organization“myorg”
bucketY输出Bucket name to write to“mybucket”

绑定支持

字段名为 ttlInSeconds

  • create

相关链接