Examples of JmxReporter


Examples of com.yammer.metrics.reporting.JmxReporter

  public JmxReporter get() {
    if (metricsRegistry == Metrics.defaultRegistry()) {
      return JmxReporter.getDefault();
    }

    final JmxReporter reporter = new JmxReporter(metricsRegistry);
    reporter.start();
    return reporter;
  }
View Full Code Here

Examples of com.yammer.metrics.reporting.JmxReporter

       
        // The first StatsHTable will set up JMX reporting for region detail and server detail registries
        if(!jmxSetupDone) {
            synchronized (jmxSetupLock) {
                if(!jmxSetupDone) {
                    new JmxReporter(regionTimers).start();
                    new JmxReporter(serverTimers).start();
                    new JmxReporter(opTypeTimers).start();
                    jmxSetupDone = true;
                }
            }
        }
    }
View Full Code Here

Examples of com.yammer.metrics.reporting.JmxReporter

   * @return new metrics registry
   */
  public static GiraphMetricsRegistry createWithOptional(String groupName,
    String type) {
    MetricsRegistry registry = new MetricsRegistry();
    return new GiraphMetricsRegistry(registry, new JmxReporter(registry),
        groupName, type);
  }
View Full Code Here

Examples of com.yammer.metrics.reporting.JmxReporter

  public static SuperstepMetricsRegistry create(GiraphConfiguration conf,
      long superstep) {
    if (conf.metricsEnabled()) {
      MetricsRegistry registry = new MetricsRegistry();
      SuperstepMetricsRegistry superstepMetrics = new SuperstepMetricsRegistry(
          registry, new JmxReporter(registry),
          "giraph.superstep", String.valueOf(superstep));
      superstepMetrics.superstep = superstep;
      return superstepMetrics;
    } else {
      return createFake();
View Full Code Here

Examples of com.yammer.metrics.reporting.JmxReporter

  public static SuperstepMetricsRegistry create(GiraphConfiguration conf,
      long superstep) {
    if (conf.metricsEnabled()) {
      MetricsRegistry registry = new MetricsRegistry();
      SuperstepMetricsRegistry superstepMetrics = new SuperstepMetricsRegistry(
          registry, new JmxReporter(registry),
          "giraph.superstep", String.valueOf(superstep));
      superstepMetrics.superstep = superstep;
      return superstepMetrics;
    } else {
      return createFake();
View Full Code Here

Examples of com.yammer.metrics.reporting.JmxReporter

   * @return new metrics registry
   */
  public static GiraphMetricsRegistry createWithOptional(String groupName,
    String type) {
    MetricsRegistry registry = new MetricsRegistry();
    return new GiraphMetricsRegistry(registry, new JmxReporter(registry),
        groupName, type);
  }
View Full Code Here

Examples of com.yammer.metrics.reporting.JmxReporter

    return factory._registry;
  }

  private MetricFactory() {
    _registry = new MetricsRegistry();
    _reporter = new JmxReporter(_registry);
  }
View Full Code Here

Examples of com.yammer.metrics.reporting.JmxReporter

    });

    Metrics(Cluster.Manager manager) {
        this.manager = manager;
        if (manager.configuration.getMetricsOptions().isJMXReportingEnabled()) {
            this.jmxReporter = new JmxReporter(registry);
            this.jmxReporter.start();
        } else {
            this.jmxReporter = null;
        }
    }
View Full Code Here

Examples of com.yammer.metrics.reporting.JmxReporter

    });

    Metrics(Cluster.Manager manager) {
        this.manager = manager;
        if (manager.configuration.getMetricsOptions().isJMXReportingEnabled()) {
            this.jmxReporter = new JmxReporter(registry);
            this.jmxReporter.start();
        } else {
            this.jmxReporter = null;
        }
    }
View Full Code Here

Examples of org.apache.kafka.common.metrics.JmxReporter

                                                                  TimeUnit.MILLISECONDS);
        String clientId = config.getString(ProducerConfig.CLIENT_ID_CONFIG);
        String jmxPrefix = "kafka.producer." + (clientId.length() > 0 ? clientId + "." : "");
        List<MetricsReporter> reporters = config.getConfiguredInstances(ProducerConfig.METRIC_REPORTER_CLASSES_CONFIG,
                                                                        MetricsReporter.class);
        reporters.add(new JmxReporter(jmxPrefix));
        this.metrics = new Metrics(metricConfig, reporters, time);
        this.partitioner = new Partitioner();
        long retryBackoffMs = config.getLong(ProducerConfig.RETRY_BACKOFF_MS_CONFIG);
        this.metadataFetchTimeoutMs = config.getLong(ProducerConfig.METADATA_FETCH_TIMEOUT_CONFIG);
        this.metadata = new Metadata(retryBackoffMs, config.getLong(ProducerConfig.METADATA_MAX_AGE_CONFIG));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.