Influxdb influxdb = new Influxdb(...); influxdb.appendSeries(...); ... influxdb.appendSeries(...); influxdb.sendRequest(); influxdb.appendSeries(...); ... influxdb.appendSeries(...); influxdb.sendRequest();
5455565758596061626364
System.out.println("STOP"); } } 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)
7778798081828384858687
"metrics.influxdb.period", "60s"); final int delay = TimeUtil.parseDuration(period); try { Influxdb influxdb = new Influxdb(address, port, database, username, password); final InfluxdbReporter reporter = InfluxdbReporter .forRegistry(metricsService.getMetricRegistry()) .prefixedWith(hostname) .convertRatesTo(TimeUnit.SECONDS)