Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Adding support for dropwizard 0.7.X configuration files #17

Merged
merged 2 commits into from
Oct 17, 2014

Conversation

tianx2
Copy link

@tianx2 tianx2 commented Oct 17, 2014

This is a first pass at adding dropwizard 0.7.X configuration file support which was the reason behind my original intention to upgrade metrics-core to 3.0.2. Let me know what you think.

It currently only supports HttpTransport. I'm trying to figure out a way to have add a transport key in the yaml configuration file where you can choose between http or udp.

For more on dropwizard configuration files for reporters, see here.

private int socketTimeout = 5000; // in milliseconds

public ScheduledReporter build(MetricRegistry registry) {
HttpTransport transport = new HttpTransport.Builder()

Choose a reason for hiding this comment

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

2-space indent

@nickdella
Copy link

A couple nits and then LGTM. It would be nice if you could add UDP configuration before merging, but I would also be fine with you introducing it in a future PR.

Added dropwizard-metrics-datadog module to support dropwizard
configurations for dropwizard 0.7.x projects
Included directions in README
Fixed some formatting issues
@tianx2
Copy link
Author

tianx2 commented Oct 17, 2014

@nickdella I'll try adding the UDP configuration soon (over the next few days). It shouldn't be that hard since you have nice Builder patterns for the transports. I would rather get that support in before you merge and do another release.

@nickdella
Copy link

Ok, lgtm!

nickdella added a commit that referenced this pull request Oct 17, 2014
Adding support for dropwizard 0.7.X configuration files
@nickdella nickdella merged commit 2abdc38 into coursera:master Oct 17, 2014
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants