Search in sources :

Example 41 with MetricsSystem

use of org.apache.hadoop.metrics2.MetricsSystem in project ozone by apache.

the class RDBMetrics method unRegister.

public static synchronized void unRegister() {
    instance = null;
    MetricsSystem ms = DefaultMetricsSystem.instance();
    ms.unregisterSource(SOURCE_NAME);
}
Also used : MetricsSystem(org.apache.hadoop.metrics2.MetricsSystem) DefaultMetricsSystem(org.apache.hadoop.metrics2.lib.DefaultMetricsSystem)

Example 42 with MetricsSystem

use of org.apache.hadoop.metrics2.MetricsSystem in project ozone by apache.

the class XceiverClientMetrics method unRegister.

public void unRegister() {
    MetricsSystem ms = DefaultMetricsSystem.instance();
    ms.unregisterSource(SOURCE_NAME);
}
Also used : MetricsSystem(org.apache.hadoop.metrics2.MetricsSystem) DefaultMetricsSystem(org.apache.hadoop.metrics2.lib.DefaultMetricsSystem)

Example 43 with MetricsSystem

use of org.apache.hadoop.metrics2.MetricsSystem in project ozone by apache.

the class OzoneManagerDoubleBufferMetrics method unRegister.

public void unRegister() {
    MetricsSystem ms = DefaultMetricsSystem.instance();
    ms.unregisterSource(SOURCE_NAME);
}
Also used : MetricsSystem(org.apache.hadoop.metrics2.MetricsSystem) DefaultMetricsSystem(org.apache.hadoop.metrics2.lib.DefaultMetricsSystem)

Example 44 with MetricsSystem

use of org.apache.hadoop.metrics2.MetricsSystem in project ozone by apache.

the class OzoneManagerDoubleBufferMetrics method create.

public static synchronized OzoneManagerDoubleBufferMetrics create() {
    if (instance != null) {
        return instance;
    } else {
        MetricsSystem ms = DefaultMetricsSystem.instance();
        OzoneManagerDoubleBufferMetrics omDoubleBufferMetrics = ms.register(SOURCE_NAME, "OzoneManager DoubleBuffer Metrics", new OzoneManagerDoubleBufferMetrics());
        instance = omDoubleBufferMetrics;
        return omDoubleBufferMetrics;
    }
}
Also used : MetricsSystem(org.apache.hadoop.metrics2.MetricsSystem) DefaultMetricsSystem(org.apache.hadoop.metrics2.lib.DefaultMetricsSystem)

Example 45 with MetricsSystem

use of org.apache.hadoop.metrics2.MetricsSystem in project ozone by apache.

the class ContainerCacheMetrics method create.

public static ContainerCacheMetrics create() {
    MetricsSystem ms = DefaultMetricsSystem.instance();
    String name = "ContainerCacheMetrics";
    return ms.register(name, "null", new ContainerCacheMetrics(name, ms));
}
Also used : MetricsSystem(org.apache.hadoop.metrics2.MetricsSystem) DefaultMetricsSystem(org.apache.hadoop.metrics2.lib.DefaultMetricsSystem)

Aggregations

MetricsSystem (org.apache.hadoop.metrics2.MetricsSystem)80 DefaultMetricsSystem (org.apache.hadoop.metrics2.lib.DefaultMetricsSystem)58 Test (org.junit.Test)23 MetricsSource (org.apache.hadoop.metrics2.MetricsSource)6 MetricsSystemImpl (org.apache.hadoop.metrics2.impl.MetricsSystemImpl)5 MyMetrics1 (org.apache.hadoop.metrics2.sink.RollingFileSystemSinkTestBase.MyMetrics1)5 JvmMetrics (org.apache.hadoop.hive.common.JvmMetrics)3 JvmMetrics (org.apache.hadoop.metrics2.source.JvmMetrics)3 After (org.junit.After)3 Path (org.apache.hadoop.fs.Path)2 LlapMetricsSystem (org.apache.hadoop.hive.llap.metrics.LlapMetricsSystem)2 MetricsCollectorImpl (org.apache.hadoop.metrics2.impl.MetricsCollectorImpl)2 MetricsRegistry (org.apache.hadoop.metrics2.lib.MetricsRegistry)2 ContainerId (org.apache.hadoop.yarn.api.records.ContainerId)2 QueueMetrics (org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics)2 Matchers.anyString (org.mockito.Matchers.anyString)2 ConsoleReporter (com.codahale.metrics.ConsoleReporter)1 MetricRegistry (com.codahale.metrics.MetricRegistry)1 ChannelFuture (io.netty.channel.ChannelFuture)1 URI (java.net.URI)1