Class JmxMetricsReporter

  • All Implemented Interfaces:
    com.codahale.metrics.Reporter, Closeable, AutoCloseable

    public class JmxMetricsReporter
    extends Object
    implements com.codahale.metrics.Reporter, Closeable
    This is a modified copy of Dropwizard's JmxReporter and classes that it internally uses, with a few important differences:
    • this class knows that it can directly use MetricsMap as a dynamic MBean.
    • this class allows us to "tag" MBean instances so that we can later unregister only instances registered with the same tag.
    • this class processes all metrics already existing in the registry at the time when reporter is started.