如何在 InfluxDB 中删除系列的列 [英] How to delete columns of a series in InfluxDB

查看:30
本文介绍了如何在 InfluxDB 中删除系列的列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法删除 InfluxDB 中某个系列的特定列?

Is there any solution to remove a specific column of a series in InfluxDB?

这个功能好像没有实现.但是有没有人找到任何技巧来做到这一点?

Its seems that this feature is not implemented. But does anybody have found any kind of trick to do that?

推荐答案

无法从 Influx 测量中删除列"(即字段或标签).这是功能请求.

There is no way to delete a "column" (i.e. a field or a tag) from an Influx measurement. Here's the feature request for that.

您必须选择不同的度量,排除您不想要的列:

You'll have to SELECT INTO a different measurement, excluding the columns you don't want:

SELECT useful_field, nice_tag INTO new_measurement FROM measurement

这篇关于如何在 InfluxDB 中删除系列的列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆