I have configured a basic sl4j reporter for a dropwizard (codehale) metrics registry. This is the reporter configuration:
Slf4jReporter.forRegistry(metricRegistry) .outputTo(slf4jLogger) .convertRatesTo(TimeUnit.SECONDS) .convertDurationsTo(TimeUnit.MILLISECONDS) .build(); reporter.start(30, TimeUnit.SECONDS);
The logs I am receiving are not what I expected (expected a parseable output of the timers, counters registered wtih metricRegistry). This is what I am actually seeing every 30 seconds (which matches the reporter configuration):
.... java:55) [email protected]
Is there anyway to get a useful representation of the codehale metrics (timers, counters etc) in the logs?