Package metrics_influxdb

Examples of metrics_influxdb.InfluxdbReporter$Builder


    }
  }

  private static InfluxdbReporter startInfluxdbReporter(MetricRegistry registry) throws Exception {
    final Influxdb influxdb = new Influxdb("127.0.0.1", 8086, "dev", "u0", "u0PWD");
    final InfluxdbReporter reporter = InfluxdbReporter
        .forRegistry(registry)
        .prefixedWith("test")
        .convertRatesTo(TimeUnit.SECONDS)
        .convertDurationsTo(TimeUnit.MILLISECONDS)
        .filter(MetricFilter.ALL)
        .build(influxdb);
    reporter.start(10, TimeUnit.SECONDS);
    return reporter;
  }
View Full Code Here


            try {

                Influxdb influxdb = new Influxdb(address, port, database,
                        username, password);
                final InfluxdbReporter reporter = InfluxdbReporter
                        .forRegistry(metricsService.getMetricRegistry())
                        .prefixedWith(hostname)
                        .convertRatesTo(TimeUnit.SECONDS)
                        .convertDurationsTo(TimeUnit.MILLISECONDS)
                        .filter(MetricFilter.ALL).build(influxdb);

                reporter.start(delay, TimeUnit.SECONDS);

                log.info(
                        "Started InfluxDB Metrics reporter for '{}', updating every {}",
                        hostname, period);
View Full Code Here

TOP

Related Classes of metrics_influxdb.InfluxdbReporter$Builder

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.