コード例 #1
0
 private EventDSL newEvent() {
   EventDSL event = riemann.event();
   if (c.localHost != null) {
     event.host(c.localHost);
   }
   return event;
 }
コード例 #2
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;
 }
コード例 #3
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;
 }