文档文档

influx remote create (创建远程)

Replication remotes and replication streams can only be configured for InfluxDB OSS. (复制远程和复制流只能为 InfluxDB OSS 配置。)

The influx remote create command creates a new remote InfluxDB connection for replicating data. (influx remote create 命令创建一个新的远程 InfluxDB 连接,用于复制数据。)

Usage (用法)

influx remote create [command options] [arguments...]

Flags (标志)

Flag (标志)Description (描述)Input type (输入类型)Maps to ? (映射到 ?
--org-id (组织 ID)Organization ID (组织 ID)string (字符串)INFLUX_ORG_ID (INFLUX_ORG_ID)
-o--org (组织)Organization name (组织名称)string (字符串)INFLUX_ORG (INFLUX_ORG)
-n--name (名称)Remote connection name (远程连接名称)string (字符串)
-d--description (描述)Remote connection description (远程连接描述)string (字符串)
--remote-url (远程 URL)Remote InfluxDB instance URL (远程 InfluxDB 实例 URL)string (字符串)
--remote-api-token (远程 API 令牌)Remote InfluxDB API token (远程 InfluxDB API 令牌)string (字符串)
--remote-org-id (远程组织 ID)Remote InfluxDB organization ID (远程 InfluxDB 组织 ID)string (字符串)
--allow-insecure-tls (允许不安全的 TLS)Allows insecure TLS (self-signed certificates) (允许不安全的 TLS(自签名证书))
--host (主机)InfluxDB HTTP address (default https://127.0.0.1:8086) (InfluxDB HTTP 地址(默认为 https://127.0.0.1:8086))string (字符串)INFLUX_HOST (INFLUX_HOST)
--skip-verify (跳过验证)Skip TLS certificate verification (跳过 TLS 证书验证)INFLUX_SKIP_VERIFY (INFLUX_SKIP_VERIFY)
--configs-path (配置路径)Path to influx CLI configurations (default ~/.influxdbv2/configs) (influx CLI 配置的路径(默认为 ~/.influxdbv2/configs))string (字符串)INFLUX_CONFIGS_PATH (INFLUX_CONFIGS_PATH)
-c--active-config (活动配置)CLI configuration to use for command (用于命令的 CLI 配置)string (字符串)
--http-debug (HTTP 调试)Inspect communication with InfluxDB servers (检查与 InfluxDB 服务器的通信)string (字符串)
--json (JSON)Output data as JSON (default false) (将数据输出为 JSON 格式(默认为 false))INFLUX_OUTPUT_JSON (INFLUX_OUTPUT_JSON)
--hide-headers (隐藏标题)Hide table headers (default false) (隐藏表头(默认为 false))INFLUX_HIDE_HEADERS (INFLUX_HIDE_HEADERS)
-t--token (令牌)InfluxDB API token (InfluxDB API 令牌)string (字符串)INFLUX_TOKEN (INFLUX_TOKEN)

Examples (示例)

Authentication credentials (身份验证凭据)

The examples below assume your InfluxDB host, organization, and token are provided by either the active influx CLI configuration or by environment variables (INFLUX_HOST, INFLUX_ORG, and INFLUX_TOKEN). If you do not have a CLI configuration set up or the environment variables set, include these required credentials for each command with the following flags (以下示例假定您的 InfluxDB hostorganizationtoken活动 influx CLI 配置 或环境变量(INFLUX_HOSTINFLUX_ORGINFLUX_TOKEN)提供。 如果您没有设置 CLI 配置或环境变量,请为每个命令包含以下标志的这些必需凭据)

  • --host: InfluxDB host--host: InfluxDB 主机
  • -o, --org or --org-id: InfluxDB organization name or ID (-o, --org--org-id: InfluxDB 组织名称或 ID)
  • -t, --token: InfluxDB API token (-t, --token: InfluxDB API 令牌)

Create a new remote with InfluxDB Cloud (使用 InfluxDB Cloud 创建新的远程连接)

influx remote create \
  --name myremote \
  --org-id <OSS org ID> \
  --token <OSS token> \
  --remote-url <remote URL> \
  --remote-api-token <remote token> \
  --remote-org-id <remote ord ID>

Was this page helpful? (此页面是否对您有帮助?)

Thank you for your feedback! (感谢您的反馈!)


The future of Flux (Flux 的未来)

Flux is going into maintenance mode. You can continue using it as you currently are without any changes to your code. (Flux 即将进入维护模式。 您可以继续像现在一样使用它,而无需对您的代码进行任何更改。)

Read more (阅读更多)

InfluxDB 3 Open Source Now in Public Alpha (InfluxDB 3 开源版本现已发布公开 Alpha 版)

InfluxDB 3 Open Source is now available for alpha testing, licensed under MIT or Apache 2 licensing. (InfluxDB 3 开源版本现已可用于 alpha 测试,并根据 MIT 或 Apache 2 许可授权。)

We are releasing two products as part of the alpha. (我们正在发布两个产品作为 alpha 的一部分。)

InfluxDB 3 Core 是我们新的开源产品。它是一个针对时间序列和事件数据的近实时数据引擎。InfluxDB 3 Enterprise 是一个商业版本,它建立在 Core 的基础上,增加了历史查询能力、读取副本、高可用性、可扩展性和细粒度的安全性。

有关如何开始使用的更多信息,请查看