Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete columns of a series in 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?

like image 868
Darko P. Avatar asked Nov 05 '14 21:11

Darko P.


People also ask

How do I delete a column in InfluxDB?

Delete data using the influx CLIUse the influx delete command to delete points from InfluxDB. Use the --bucket flag to specify which bucket to delete data from. Use the --start and --stop flags to define the time range to delete data from. Use RFC3339 timestamps.

How do I delete a series from InfluxDB?

Delete series with DELETEThe DELETE query deletes all points from a series in a database. Unlike DROP SERIES , DELETE does not drop the series from the index. A successful DELETE query returns an empty result.

How do I delete a bucket in InfluxDB?

Delete a bucket in the InfluxDB UIIn the navigation menu on the left, select Load Data > Buckets. Find the bucket that you would like to delete. Click the icon located far right of the bucket name. Click Confirm to delete the bucket.

What is influx series?

In InfluxDB, a series is a collection of points that share a measurement, tag set, and field key.


1 Answers

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
like image 78
Dan Dascalescu Avatar answered Oct 11 '22 19:10

Dan Dascalescu