コード例 #1
0
 public RiemannReporter(Config c) throws IOException {
   super(c.metricsRegistry, c.name);
   this.riemann = new RiemannClient(new InetSocketAddress(c.host, c.port));
   riemann.connect();
   this.predicate = c.predicate;
   this.printVMMetrics = c.printVMMetrics;
   this.prefix = c.prefix;
   this.separator = c.separator;
   this.vm = c.vm;
   this.clock = c.clock;
   this.localHost = c.localHost;
 }
コード例 #2
0
 public RiemannReporter(final Config c) throws IOException {
   super(c.metricsRegistry, c.name);
   this.riemann = RiemannClient.tcp(new InetSocketAddress(c.host, c.port));
   riemann.connect();
   this.c = c;
 }