-
Notifications
You must be signed in to change notification settings - Fork 70
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 reporter to require host name and optional port to support UDS #335
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall! Mostly added a request on the java client update.
Co-authored-by: Olivier Vielpeau <[email protected]>
…tch into brian/jmxfetch-support-uds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall, let's make sure we're entirely sure the origin detection is correctly disabled before merging this (see my comment on the other PR: DataDog/datadog-agent#6565 (review))
src/main/java/org/datadog/jmxfetch/reporter/StatsdReporter.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good to me, let's just use the default queue size for the client. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📦
This PR enables JMXFetch to use UDS when configured. Since the rest of dogstatsd can use UDS instead of UDP, it makes sense for JMXFetch to also support this. Related JMXFetch PR: DataDog/jmxfetch#335 Co-authored-by: Jaime Fullaondo <[email protected]>
This change enables JMXFetch to use UDS as well as UDP connections for statsd.
I am introducing a breaking change to the statsd connection string. Now it will require a hostname whereas before the host was optional and it only required a port. Now the host is require and the port is optional. If no port number is found, JMXFetch assumes UDS.
I also rev'd the java-dogstatsd-client version