private EventDSL newEvent() {
   EventDSL event = riemann.event();
   if (c.localHost != null) {
     event.host(c.localHost);
   }
   return event;
 }
 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;
 }
 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;
 }