package net.soundvibe.reacto.metric;

import com.codahale.metrics.*;

/**
 * @author linas on 17.2.9.
 */
public interface Metrics {

    MetricRegistry REGISTRY = new MetricRegistry();

    Initializer INITIALIZER = new Initializer();

    class Initializer {

        static {
            REGISTRY.register("jvmAttributes", new JvmAttributeGaugeSet());
            REGISTRY.register("jvmThreads", new JvmThreadGaugeSet());
            REGISTRY.register("jvmMemory", new JvmMemoryGaugeSet());
        }

    }

}

@@ -157,20 +157,22 @@
 ISTRY = 
-new 
+Shared
 MetricRe
@@ -180,11 +180,35 @@
 istr
-y()
+ies.getOrCreate(%22default%22);
 ;%0A%0A 

Use default shared metric registry