1

I would like to know if it is possible somehow from the CLI of the influx to select the data of a specific shard. I also would like to select the series within two timestamps but i haven't yet found how. Any input would be appreciated, thank you.

4

1 回答 1

1

问:我想知道是否可以从 influx 的 CLI 中以某种方式选择特定分片的数据。

答:在 influxdb 1.3 中这是不可能的。但是,您应该能够弄清楚其中存在哪些数据。

如果您在 influx 命令行中执行语句show shard应该告诉您包含在该.startendshard

例如

给定分片信息:

id  database  retention_policy shard_group start_time           end_time             expiry_time          owners
--  --------  ---------------- ----------- ----------           --------             -----------          ------
123 mydb      autogen          123         2012-11-26T00:00:00Z 2012-12-03T00:00:00Z 2012-12-03T00:00:00Z
124 mydb      autogen          124         2013-01-14T00:00:00Z 2013-01-21T00:00:00Z 2013-01-21T00:00:00Z
125 mydb      autogen          125         2013-04-29T00:00:00Z 2013-05-06T00:00:00Z 2013-05-06T00:00:00Z 

给定测量:

name: measurements
name
----
measurement_abc
measurement_def
measurement_123

Shard123 将包含上述测量中的所有数据,这些数据落在 的开始时间2012-11-26T00:00:00Z和结束时间2012-12-03T00:00:00Z。也就是说,运行 adrop shard 123会看到该范围内的数据在测量中消失。

于 2017-12-01T05:41:34.427 回答