Package com.codahale.metrics.jvm

Examples of com.codahale.metrics.jvm.BufferPoolMetricSet


    private final MetricRegistry metricRegistry;

    public MetricRegistryProvider() {
        this.metricRegistry = new MetricRegistry();

        metricRegistry.register("jvm.buffers", new BufferPoolMetricSet(ManagementFactory.getPlatformMBeanServer()));
        metricRegistry.register("jvm.cl", new ClassLoadingGaugeSet());
        metricRegistry.register("jvm.gc", new GarbageCollectorMetricSet());
        metricRegistry.register("jvm.memory", new MemoryUsageGaugeSet());
        metricRegistry.register("jvm.threads", new ThreadStatesGaugeSet());
    }
View Full Code Here


      registerSysStats();
    }

    private static void registerSysStats(){
      REGISTRY.registerAll(new GarbageCollectorMetricSet());
      REGISTRY.registerAll(new BufferPoolMetricSet(ManagementFactory.getPlatformMBeanServer()));
      REGISTRY.registerAll(new MemoryUsageGaugeSet());
      REGISTRY.registerAll(new ThreadStatesGaugeSet());
    }
View Full Code Here

    super(registry);

    // JVM metrics are no longer automatically added in codahale-metrics
    registry.register(name("jvm", "vm"), new JvmAttributeGaugeSet());
    registry.register(name("jvm", "memory"), new MemoryUsageGaugeSet());
    registry.register(name("jvm", "buffers"), new BufferPoolMetricSet(ManagementFactory.getPlatformMBeanServer()));
    registry.register(name("jvm", "fd_usage"), new FileDescriptorRatioGauge());
    registry.register(name("jvm", "thread-states"), new ThreadStatesGaugeSet());
    registry.register(name("jvm", "garbage-collectors"), new GarbageCollectorMetricSet());
  }
View Full Code Here

        this.validatorFactory = Validation
                .byProvider(HibernateValidator.class)
                .configure()
                .addValidatedValueHandler(new OptionalValidatedValueUnwrapper())
                .buildValidatorFactory();
        getMetricRegistry().register("jvm.buffers", new BufferPoolMetricSet(ManagementFactory
                                                                               .getPlatformMBeanServer()));
        getMetricRegistry().register("jvm.gc", new GarbageCollectorMetricSet());
        getMetricRegistry().register("jvm.memory", new MemoryUsageGaugeSet());
        getMetricRegistry().register("jvm.threads", new ThreadStatesGaugeSet());
View Full Code Here

     
      super(builder, config, parent, child, context);     
      validateArguments();
     
      MetricRegistry registry = context.getMetricRegistry();
      BufferPoolMetricSet bufferPoolMetrics = new BufferPoolMetricSet(ManagementFactory.getPlatformMBeanServer());
      registerAll("jvm.buffers", bufferPoolMetrics, registry);
      registerAll("jvm.gc", new GarbageCollectorMetricSet(), registry);
      registerAll("jvm.memory", new MemoryUsageGaugeSet(), registry);
      registerAll("jvm.threads", new ThreadStatesGaugeSet(), registry);
      register("jvm.fileDescriptorCountRatio", new FileDescriptorRatioGauge(), registry);
View Full Code Here

     
      super(builder, config, parent, child, context);     
      validateArguments();
     
      MetricRegistry registry = context.getMetricRegistry();
      BufferPoolMetricSet bufferPoolMetrics = new BufferPoolMetricSet(ManagementFactory.getPlatformMBeanServer());
      registerAll("jvm.buffers", bufferPoolMetrics, registry);
      registerAll("jvm.gc", new GarbageCollectorMetricSet(), registry);
      registerAll("jvm.memory", new MemoryUsageGaugeSet(), registry);
      registerAll("jvm.threads", new ThreadStatesGaugeSet(), registry);
      register("jvm.fileDescriptorCountRatio", new FileDescriptorRatioGauge(), registry);
View Full Code Here

      registerSysStats();
    }

    private static void registerSysStats(){
      REGISTRY.registerAll(new GarbageCollectorMetricSet());
      REGISTRY.registerAll(new BufferPoolMetricSet(ManagementFactory.getPlatformMBeanServer()));
      REGISTRY.registerAll(new MemoryUsageGaugeSet());
      REGISTRY.registerAll(new ThreadStatesGaugeSet());
    }
View Full Code Here

TOP

Related Classes of com.codahale.metrics.jvm.BufferPoolMetricSet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.