Package com.codahale.metrics.ganglia

Examples of com.codahale.metrics.ganglia.GangliaReporter.start()


                final GangliaReporter reporter = GangliaReporter.forRegistry(this.metricRegistry)
                            .convertDurationsTo(this.getRealDurationTimeUnitConversion())
                            .convertRatesTo(this.getRealRateTimeUnitConversion())
                            .filter(new RegexMetricFilter(this.inclusion, this.exclusion))
                            .build(ganglia);
                reporter.start(this.period, this.getRealTimeUnit());
                reporters.add(reporter);
            }
        }
        catch (Exception e)
        {
View Full Code Here


      GMetric ganglia = new GMetric(getGangliaAddress(), getGangliaPort(), UDPAddressingMode.valueOf(getGangliaAddressingMode()), getGangliaTtl(), true);
      GangliaReporter gangliaReporter = GangliaReporter.forRegistry(summaryRegistry)
          .convertRatesTo(TimeUnit.SECONDS)
          .convertDurationsTo(TimeUnit.MILLISECONDS)
          .build(ganglia);
      gangliaReporter.start(1, TimeUnit.MINUTES);
    }
   
    OpenGammaMetricRegistry.setSummaryRegistry(summaryRegistry);
    OpenGammaMetricRegistry.setDetailedRegistry(detailedRegistry);
  }
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.