Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9342

Metrics component should log at debug level

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.16.2, 2.17.0
    • camel-metrics
    • None
    • Novice

    Description

      The metrics component does the following:

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

      This results in quite a bit of noise in application log files, as some (not particularly useful) log output is generated each time the metrics thread runs. It'd be better to force the log level for this output to DEBUG.

      Adding something like the following should be sufficient:

      .withLoggingLevel(Slf4jReporter.LoggingLevel.DEBUG)
      

      Attachments

        Activity

          People

            acosentino Andrea Cosentino
            jamesnetherton James Netherton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: