2016-09-25 243 views

回答

2

这是不可能的InfluxDB - 请参阅ticket

您可以通过在测量点插入具有相同timestamp and tag set覆盖其他一些价值点:

A point is uniquely identified by the measurement name, tag set, and timestamp. If you submit a new point with the same measurement, tag set, and timestamp as an existing point, the field set becomes the union of the old field set and the new field set, where any ties go to the new field set. This is the intended behavior.

既然你not supposed to insert nulls,你可能会想从以前的重复值点(一个或多个)。

您不妨考虑一下插入点相同的时间戳,以及标签中的一个设置一个唯一的值,然后运行删除针对标签:

DELETE FROM measurement WHERE some_existing_tag='deleteme' 

这虽然不会工作。最后会得到两个具有相同时间戳的点,其中一个具有deleteme标记。