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

Statsd reporter to require host name and optional port to support UDS #335

Merged
merged 14 commits into from
Oct 27, 2020

Conversation

gh123man
Copy link
Member

@gh123man gh123man commented Oct 14, 2020

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

@gh123man gh123man changed the title Don't validate statsd port because address can be a UDS Statsd reporter to require host name and optional port to support UDS Oct 16, 2020
Copy link
Member

@olivielpeau olivielpeau left a 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.

src/main/java/org/datadog/jmxfetch/AppConfig.java Outdated Show resolved Hide resolved
pom.xml Show resolved Hide resolved
Copy link
Member

@olivielpeau olivielpeau left a 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))

Copy link
Member

@truthbk truthbk left a 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. 👍

Copy link
Member

@truthbk truthbk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📦

@gh123man gh123man merged commit 20d5e62 into master Oct 27, 2020
gh123man added a commit to DataDog/datadog-agent that referenced this pull request Oct 30, 2020
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants