文档

同时写入InfluxDB OSS和InfluxDB Clustered

如果您想在两个地方备份您的数据,或者如果您正在从InfluxDB OSS迁移到InfluxDB Clustered,您可能需要设置Telegraf以进行双重写入。

使用Telegraf同时写入InfluxDB OSS和InfluxDB Clustered。

以下示例配置使用了

使用以下配置同时将数据写入OSS和Clustered实例。

示例配置

# Include any other input, processor, or aggregator plugins that you want to include in your configuration.

# Send data to InfluxDB OSS v2
[[outputs.influxdb_v2]]
  ## The URLs of the InfluxDB instance.
  ##
  ## Multiple URLs can be specified for a single cluster, only ONE of the
  ## urls will be written to each interval.
  ## urls exp: http://127.0.0.1:9999
  urls = ["http://localhost:8086"]

  ## OSS token for authentication.
  token = "${INFLUX_TOKEN_OSS}"

  ## Organization is the name of the organization you want to write to. It must already exist.
  organization = "ORG_NAME_OSS"

  ## Destination bucket to write to.
  bucket = "BUCKET_NAME_OSS"

# Send data to InfluxDB cluster
 [[outputs.influxdb_v2]]
  ## The URLs of the InfluxDB instance.

  urls = ["https://cluster-host.com"]

  ## Cloud token for authentication.
  token = "${INFLUX_TOKEN}"

  ## For InfluxDB Clustered, set organization to an empty string.
  organization = ""

  ## Destination bucket to write into.
  bucket = "DATABASE_NAME"

这个页面有帮助吗?

感谢您的反馈!


Flux 的未来

Flux 正进入维护模式。您可以使用它,无需对代码进行任何更改。

阅读更多

InfluxDB v3 的增强功能和 InfluxDB 集群版现已上市

新功能,包括更快的查询性能和管理工具,推动了 InfluxDB v3 产品线的进步。InfluxDB 集群版现已上市。

InfluxDB v3 的性能和功能

InfluxDB v3 产品线在查询性能方面有了显著提升,并提供了新的管理工具。这些增强包括一个用于监控 InfluxDB 集群健康的操作仪表板,InfluxDB Cloud Dedicated 中的单点登录(SSO)支持,以及针对令牌和数据库的新管理 API。

了解新的 v3 增强功能


InfluxDB 集群版上市

InfluxDB 集群版现已上市,并为您在自行管理的堆栈中提供了 InfluxDB v3 的功能。

与我们谈论 InfluxDB 集群版