-
Notifications
You must be signed in to change notification settings - Fork 5.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
Statsd should expose "separator" configuration #876
Comments
Can you be more specific? What is not expected? Give some input/output examples |
@sparrc Considering the documentation of the module, it's expected to have something like that
But it result in having dotted measurement like
|
@kri5 What version are you running and can you show me your config? that should not happen if the |
@sparrc i do not use convert_names, as that is not what i want to do here it seems caused because the graphite template parser is called with a '.' separator https://github.com/influxdata/telegraf/blob/master/plugins/inputs/statsd/statsd.go#L434 Before e619493 the parser was called with '_' convert_names implies that my dashes '-' would transform to '__' and that's not the behaviour i expect. |
okay, that option was added because some users actually want to keep the dot-separated metrics. So I think this issue is basically about separating out two options in the config:
|
@sparrc i was more thinking about adding a separator config that would be passed to the graphite parser, to be consistent with the statsd and graphite template documentation, instead of simply passing ".". |
that's a good idea too, and actually should be fairly simple |
@sparrc I have for example metric |
ok, I can see the problem is in ouput plugin - https://github.com/influxdata/telegraf/blob/master/plugins/outputs/datadog/datadog.go#L74 - this is really weird default behavior... |
can you open a separate issue for that? |
done #1024 |
When using templates using statsd, it seems that it uses a graphite parser, which is good because it reuses existing code.
The main issue here is that e619493 introduces a change in the way it is working, as it uses a "." separator, instead of a "_" previously.
The best would be to provide a way of specifying a separator in the statsd configuration.
Looking at the tests i don't know how they are still passing.
I have no good idea on how to implement that.
The text was updated successfully, but these errors were encountered: