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

Allow configuration of MetricsReporter subclasses

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.10.1.0
    • Component/s: clients, streams
    • Labels:
      None

      Description

      The current interface for attaching metrics reporters to clients allows only defining a list of class names, but provides no means for configuring those reporters.

      There is at least one existing project (https://github.com/apakulov/kafka-graphite) that solves this problem by passing additional properties into the client, which then get passed on to the reporter. This seems to work quite well, but it generates warnings like The configuration kafka.graphite.metrics.prefix = foo was supplied but isn't a known config.

      Should passing arbitrary additional parameters like this be officially supported as the way to configure metrics reporters? Should these warnings about unrecognized parameters be removed?

      Perhaps there should be some mechanism for registering additional configuration parameters for clients to expect?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                guozhang Guozhang Wang
                Reporter:
                jeff.klukas@gmail.com Jeff Klukas
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: