influxdb icon indicating copy to clipboard operation
influxdb copied to clipboard

Add support for regex to drop series

Open pauldix opened this issue 12 years ago • 52 comments

Should be able to issue a query like drop series /foo.*/

pauldix avatar Apr 17 '14 19:04 pauldix

+1

This feature would be very nice to have. Creating lots of series e.g. duo to fan out it would be very convenient to use a regex to drop them all together as easy as you can create them :)

tisba avatar Jun 14 '14 17:06 tisba

In case someone needs to work around this issue: I run "SELECT time FROM #{series}" LIMIT 1 right now in order to get all matching series for the regex series. Then you can run a drop query for each series.

tisba avatar Jun 14 '14 18:06 tisba

+1

Deleting series 62 of 244, this feature would be handy right now

elvarb avatar Jul 08 '14 16:07 elvarb

+1

sahilthapar avatar Jul 09 '14 10:07 sahilthapar

+1 on this. Some of our services output 10000+ distinct metrics, and we have a dozen+ services. The only sanity-preserving option for now is dropping the db, which won't be viable much longer.

cboggs avatar Jul 13 '14 22:07 cboggs

Indeed

pabelanger avatar Jul 16 '14 16:07 pabelanger

I have some bad data in some series (series like foobar.sock��v�o.. don't ask), can't delete it cause i can't specify it by name, and it's breaking graphite-api :( would love this feature right now!

Dieterbe avatar Aug 07 '14 19:08 Dieterbe

most of the use cases above can for now be solved using using influx-cli like so:

for i in $(influx-cli <<< "list series /regex/" | tail -n +2); do echo "drop series $i"; done | influx-cli

Dieterbe avatar Aug 21 '14 03:08 Dieterbe

+1 is there a way to vote on this?

johnarnold avatar Sep 10 '14 20:09 johnarnold

+1

ernoaapa avatar Sep 16 '14 10:09 ernoaapa

+1

SirSepp avatar Sep 25 '14 10:09 SirSepp

+1

bithive avatar Sep 26 '14 22:09 bithive

:+1:

Lupus avatar Sep 27 '14 14:09 Lupus

+1

alex-vv avatar Oct 06 '14 10:10 alex-vv

+1

IngaFeick avatar Oct 27 '14 15:10 IngaFeick

+1

xo4n avatar Oct 30 '14 14:10 xo4n

+1

chmac avatar Nov 02 '14 14:11 chmac

+1

bhtucker avatar Nov 06 '14 21:11 bhtucker

+1 Really important.

mmogylenko avatar Nov 14 '14 18:11 mmogylenko

+1

eaminz avatar Nov 19 '14 18:11 eaminz