-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop/delete measurements with specified tag keys, not tag values #8604
Comments
I'll leave this issue open as a feature request, but one workaround is to use tag key not equal to empty string:
|
Thanks, @mark-rushakoff for workaround and hope that we can see this feature in some of the next releases, if someone else interesting in. Ivan |
Yes It's very useful for us |
Hello @dali20022 , I believe no. |
I'm not aware of any immediate plans. Possibly this is something we're addressing with Flux for 2.0. Ping @timhallinflux? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
After upgrade to version 1.7 in sandbox environment the problem is fixed |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity. Please reopen if this issue is still important to you. Thank you for your contributions. |
Feature Request
Due to problems with network our data have been corrupted - some issue with telegraf
And we have a lot of these corrupted measurements in influxdb, for example:
and if execute
show series
also a lot of corrupted data, one series as example:
xml,hostnamg=hostname.com,jost=hostname.com
As you can see there are "hostnamg" and "jost" tag keys instead of hostname and host respectively.
and in my case I have ~2k of bogus series (impossible to clean up manually)
system info:
Proposal:
Admin should be able to run something like this:
drop series with tag keys = "tag_key"
Even w/o regexp support it will be great.
Current behavior:
Currently we have instrument to dropping series only by tag value, not keys
DROP SERIES FROM <measurement_name[,measurement_name]> WHERE <tag_key>='<tag_value>'
Use case:
It's really useful when we need to clean up corrupted/old/wrong from the DB
If I can do this with existing instrument (CLI commands) please point me to the docs, because I didn't find in official docs.
Thanks,
Ivan Pun'ko
The text was updated successfully, but these errors were encountered: