Is there any way to combine the Slf4jReporter with the metrics-json package to generate JSON in the logs

476 views Asked by At

Is there any way to combine the Slf4jReporter with the metrics-json package to generate JSON in the logs?

reporter = Slf4jReporter.forRegistry(registry)
                        .outputTo(logger)
                        .convertRatesTo(TimeUnit.SECONDS)
                        .convertDurationsTo(TimeUnit.MILLISECONDS)
                        .build();

Is there any example of registering the metrics-json with reporter/logger.

0

There are 0 answers