The RiemanReporter Builder in the Java Client Library takes the registry of dropwizard metrics in the constructor. It supports event tagging and converts bids into Riemann events. You can set the polling interval in the start method using TimeUnit
Riemann riemann = new Riemann("YOUR_RIEMANN_HOST", 5555); ArrayList<String> tags = new ArrayList<String>(); tags.add("YOUR_APPLICATION_TAG"); RiemannReporter.Builder builder = RiemannReporter.forRegistry(environment.metrics()).tags(tags); RiemannReporter riemannReporter = builder.build(riemann); riemannReporter.start(1, TimeUnit.SECONDS);
Riemann configuration to capture this output and write to the Riemann log:
(streams (where (tag "YOUR_APPLICATION_TAG")
source share