7

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.

math4tots
  • 8,540
  • 14
  • 58
  • 95

0 Answers0