Skip to content
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

opentsdb do not support “{” in tags #1543

Open
lanyyyy opened this issue Feb 18, 2019 · 3 comments
Open

opentsdb do not support “{” in tags #1543

lanyyyy opened this issue Feb 18, 2019 · 3 comments

Comments

@lanyyyy
Copy link

lanyyyy commented Feb 18, 2019

I want to write to opentsdb, but it do not support "{" and "}", how to resolve it ???

image

@johann8384
Copy link
Member

Well, the obvious answer is don't use a curly brace in your tags. The main reason it isn't supported is that the query parser is not that smart so escaping the curly braces isn't supported. I can flag this as a feature request but it doesn't seem likely to get done soon unless you or someone else in the community wants to submit a PR for it.

@johann8384
Copy link
Member

You could see if the normalize tag plugin works for you. I'm not sure if it would be hooked in before or after this validation. You could remove all the {} characters.

#1525

If this were my installation, I'd probably replace the {} with _ or something.

@johann8384
Copy link
Member

You could try adding the {} here:

public static void validateString(final String what, final String s) {
but it's not likely to work futher down in the pipeline. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants