-
Notifications
You must be signed in to change notification settings - Fork 101
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
Delete ":" from metric names to allow statsd server insert them #27
Comments
Hi @odin-delrio, can you tell me more about your current setup? If you're using |
Hi @masci I can escape them in my own code, in fact, I'm already doing it overriding the needed Spring Bean... Anyway, I thought that this statsd client and the original one were interchangeable (both are under same package names) but this is not currently true... Spring is relying in this constructor (you can see that here) which is not currently available in DataDog implementation of the statsd client. Sorry for not test this implementation with Spring boot before open the issue, I assumed that it was compatible... For summarize, what do you think about: public NonBlockingStatsDClient(String prefix, String hostname, int port, StatsDClientErrorHandler errorHandler) throws StatsDClientException 2 - Escape in the Statsd client the ":" in the metric names avoiding to deal with that to every users of the library. |
Looks like this has been fixed in spring-boot. Can this issue be closed? |
I fixed there in spring yes, but if this is done here every user (not only the spring-boot ones) can take the benefit of this... |
(Also opened for the original java statsd client at tim-group/java-statsd-client#46)
Hi all!
I'm currently using statsd to automatically record all the metrics provided by some spring boot application.
In my case, spring is creating some metrics with ":" in the name (for some hystrix with feign stats), and these ones are skipped by the statsd server (https://github.com/etsy/statsd).
That implementation allow to insert multiple metric types to the same metric:
Produces this output:
This (undocumented) statsd feature does not allow me to make a PR to statsd repository... So, That's why I'm here,
would be acceptable to make you a PR (or request for the change) to simply delete the ":" in the metric names?
The statsd server is already deleting some characters from metric name:
https://github.com/etsy/statsd/blob/master/stats.js#L170
The text was updated successfully, but these errors were encountered: