Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-5906

Change metric.reporters configuration key to metrics.reporters to be consistent

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • config, metrics

    Description

      The "metric.reporters" configuration key should be consistent with the actual classes. Clients have a MetricsReporter.class while the broker has a KafkaMetricsReporter.class.

      We have seen quite a few people configure this field incorrectly by setting it as "metrics.reporters".

      The configuration key could be renamed to "metrics.reporters" to match the classes, or the classes can be renamed to MetricReporter.class and KafkaMetricReporter.class.

      The broker configuration description for "metric.reporters" also mentions MetricReporter, but KafkaMetricsReporter is the actual interface to implement.

      There also seems to be a discrepancy with "MetricReporter" in the description as the class name is actually "MetricsReporter". https://github.com/apache/kafka/pull/3875

      Attachments

        Activity

          People

            Unassigned Unassigned
            lu.kevin Kevin Lu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: