Search in sources :

Example 1 with FileDescriptorMetrics

use of io.micrometer.core.instrument.binder.system.FileDescriptorMetrics in project zeppelin by apache.

the class ZeppelinServer method initMetrics.

private static void initMetrics(ZeppelinConfiguration conf) {
    if (conf.isPrometheusMetricEnabled()) {
        promMetricRegistry = new PrometheusMeterRegistry(PrometheusConfig.DEFAULT);
        Metrics.addRegistry(promMetricRegistry);
    }
    if (conf.isJMXEnabled()) {
        Metrics.addRegistry(new JmxMeterRegistry(JmxConfig.DEFAULT, Clock.SYSTEM));
    }
    new ClassLoaderMetrics().bindTo(Metrics.globalRegistry);
    new JvmMemoryMetrics().bindTo(Metrics.globalRegistry);
    new JvmThreadMetrics().bindTo(Metrics.globalRegistry);
    new FileDescriptorMetrics().bindTo(Metrics.globalRegistry);
    new ProcessorMetrics().bindTo(Metrics.globalRegistry);
    new UptimeMetrics().bindTo(Metrics.globalRegistry);
    new JVMInfoBinder().bindTo(Metrics.globalRegistry);
}
Also used : PrometheusMeterRegistry(io.micrometer.prometheus.PrometheusMeterRegistry) ClassLoaderMetrics(io.micrometer.core.instrument.binder.jvm.ClassLoaderMetrics) JvmThreadMetrics(io.micrometer.core.instrument.binder.jvm.JvmThreadMetrics) ProcessorMetrics(io.micrometer.core.instrument.binder.system.ProcessorMetrics) JmxMeterRegistry(io.micrometer.jmx.JmxMeterRegistry) FileDescriptorMetrics(io.micrometer.core.instrument.binder.system.FileDescriptorMetrics) JvmMemoryMetrics(io.micrometer.core.instrument.binder.jvm.JvmMemoryMetrics) UptimeMetrics(io.micrometer.core.instrument.binder.system.UptimeMetrics) JVMInfoBinder(org.apache.zeppelin.metric.JVMInfoBinder)

Aggregations

ClassLoaderMetrics (io.micrometer.core.instrument.binder.jvm.ClassLoaderMetrics)1 JvmMemoryMetrics (io.micrometer.core.instrument.binder.jvm.JvmMemoryMetrics)1 JvmThreadMetrics (io.micrometer.core.instrument.binder.jvm.JvmThreadMetrics)1 FileDescriptorMetrics (io.micrometer.core.instrument.binder.system.FileDescriptorMetrics)1 ProcessorMetrics (io.micrometer.core.instrument.binder.system.ProcessorMetrics)1 UptimeMetrics (io.micrometer.core.instrument.binder.system.UptimeMetrics)1 JmxMeterRegistry (io.micrometer.jmx.JmxMeterRegistry)1 PrometheusMeterRegistry (io.micrometer.prometheus.PrometheusMeterRegistry)1 JVMInfoBinder (org.apache.zeppelin.metric.JVMInfoBinder)1