-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Adding support for matching tags multiple times in Graphite parser #5419
Conversation
Graphite doesn't have a concept of a |
well, the current use case I have only involves host, which is easy since the separator should always be dot. But yes, the first thing that came to mind was to match tags multiple times, but then what separator to use? Thanks, |
@m4ce I understand. The issue is that For separator, there is already a |
I'm not a go developer, so I did what I could :) I hope the changes are good enough. Thank you, |
d25bdea
to
9d90e7f
Compare
Any plan to merge this in the next release? Currently, I am deploying a custom binary around which is sub-optimal :) |
I've got a PR which is kinda related to this, which allows you to wildcard the "field" name of each metric: |
@m4ce This looks better. We need to have some test cases for this code though. You could add one fairly easily to this test case: https://github.com/influxdata/influxdb/blob/master/services/graphite/parser_test.go#L34 |
e8bce4e
to
da11d5e
Compare
@jwilder, I've added a case which tests multiple tags. I hope that is sufficient! Thank you! |
Adding support for matching tags multiple times in Graphite parser
Thanks @m4ce |
Original ticket #5416