@PostConstruct
    public void init() {
        this.metricRegistry.register(name("gc"), new GarbageCollectorMetricSet());
        this.metricRegistry.register(name("memory"), new MemoryUsageGaugeSet());
        this.metricRegistry.register(name("thread-states"), new ThreadStatesGaugeSet());
        this.metricRegistry.register(name("fd-usage"), new FileDescriptorRatioGauge());
    }
@ PostConstruct public void init ( ) { this . metricRegistry . register ( name ( "gc" ) , new GarbageCollectorMetricSet ( ) ) ; this . metricRegistry . register ( name ( "memory" ) , new MemoryUsageGaugeSet ( ) ) ; this . metricRegistry . register ( name ( "thread-states" ) , new ThreadStatesGaugeSet ( ) ) ; this . metricRegistry . register ( name ( "fd-usage" ) , new FileDescriptorRatioGauge ( ) ) ; }
Add several jvm metrics.