Documentation

使用 Influx 查询命令

使用influx query 命令通过Flux查询InfluxDB中的数据。将Flux查询作为文件或通过stdin传递给命令。

从文件运行查询
influx query --file /path/to/query.flux
通过stdin管道传递原始Flux
influx query - # Return to open the pipe

data = from(bucket: "example-bucket") |> range(start: -10m) # ...
# Linux & macOS: <ctrl-d> to close the pipe and submit the command
# Windows: <enter>, then <ctrl-d>, then <enter> to close the pipe and submit the command

在大型数据集中删除不必要的列

当使用 influx query 命令查询和下载大型数据集时,删除诸如 _start_stop 等列以优化下载文件大小。

// ...
    |> drop(columns: ["_start", "_stop"])


Flux的未来

Flux 正在进入维护模式。您可以像现在一样继续使用它,而无需对您的代码进行任何更改。

阅读更多

InfluxDB 3 开源版本现已公开Alpha测试

InfluxDB 3 Open Source is now available for alpha testing, licensed under MIT or Apache 2 licensing.

我们将发布两个产品作为测试版的一部分。

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

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

由TSM驱动的InfluxDB Cloud