Closed rludvig closed 11 years ago
yes see your point, will make it possible to get the MetricsRegistry, so you can add things to it.
ok fixed it now, will not build a new release yet, hava a couple of things that needs to be fixed first.
@rludvig thanks for reporting! :)
JDBCMetrics seems to create a MetricsRegistry by using the constructor (as opposed to the static Metrics utility class). This way of instantiating the registry will not register a JMXReporter, and it doesn't seem to be possible to do it later, since the MetricsRegistry field is private.
Upon instantiating the MetricsRegistry, the following code is neede to register a JMXReporter: new JMXReporter(registry).start();