Examples of GraphiteReporter


Examples of com.yammer.metrics.reporting.GraphiteReporter

            String graphitePrefix = properties.getProperty(METRICCATCHER_GRAPHITE_PREFIX);
            if (graphitePrefix == null) {
                graphitePrefix = InetAddress.getLocalHost().getHostName();
            }
            logger.info("Creating Graphite reporter pointed at " + graphiteHost + ":" + graphitePort + " with prefix '" + graphitePrefix + "'");
            GraphiteReporter graphiteReporter = new GraphiteReporter(graphiteHost, Integer.parseInt(graphitePort), StringUtils.trimToNull(graphitePrefix));
            graphiteReporter.printVMMetrics = !disableJvmMetrics;
            graphiteReporter.start(reportingInterval, TimeUnit.SECONDS);
        }

        int maxMetrics = Integer.parseInt(properties.getProperty(METRICCATCHER_MAX_METRICS, "500"));
        logger.info("Max metrics: " + maxMetrics);
        Map<String, Metric> lruMap = new LRUMap<String, Metric>(10, maxMetrics);
View Full Code Here

Examples of com.yammer.metrics.reporting.GraphiteReporter

        String graphiteHost = properties.getProperty("metricCatcher.graphite.host");
        String graphitePort = properties.getProperty("metricCatcher.graphite.port");
        if (graphiteHost != null && graphitePort != null) {
            String hostname = InetAddress.getLocalHost().getHostName();
            logger.info("Creating Graphite reporter pointed at " + graphiteHost + ":" + graphitePort + " with prefix " + hostname);
            GraphiteReporter graphiteReporter = new GraphiteReporter(graphiteHost, Integer.parseInt(graphitePort), hostname);
            graphiteReporter.start(60, TimeUnit.SECONDS);
        }

        int maxMetrics = Integer.parseInt(properties.getProperty("metricCatcher.maxMetrics", "500"));
        logger.info("Max metrics: " + maxMetrics);
        Map<String, Metric> lruMap = new LRUMap<String, Metric>(10, maxMetrics);
View Full Code Here

Examples of org.springside.modules.metrics.reporter.GraphiteReporter

  public void start() {
    Slf4jReporter slf4jReporter = new Slf4jReporter();
    scheduler = new ReportScheduler(MetricRegistry.INSTANCE, slf4jReporter);

    if (graphiteEnabled) {
      GraphiteReporter graphiteReporter = new GraphiteReporter(new InetSocketAddress("localhost", 2003));
      scheduler.addReporter(graphiteReporter);
    }

    scheduler.start(10, TimeUnit.SECONDS);
View Full Code Here

Examples of org.springside.modules.metrics.reporter.GraphiteReporter

  }

  @Test
  @Ignore("manual test")
  public void graphiteReporter() {
    runReport(new GraphiteReporter(new InetSocketAddress("localhost", 2003)));
  }
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.