codahale/metrics — pull request #268 by gseitz (2012-07-25 08:21:04+00:00)
Title: Allow disabling of the JmxReporter via a system property

This pull request is related to #235, but takes a different approach.

When continually running tests with SBTs `~test` command, all runs after the first run cause `javax.management.InstanceAlreadyExistsException`s for each metric that is used during the test.

This patch reads the system property `metrics.jmx.autostart` and prevents only stats the `JmxReporter` if the system property is set to `false`.

Please let me know if you need any changes made.