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

Improve the accuracy of Histogram in client metric

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • clients, metrics
    • None

    Description

      The Histogram type (org.apache.kafka.common.metrics.stats) in KafkaMetrics in the client module statically divides the value space into a fixed number of buckets and only returns values on the bucket boundary. So, the returned histogram value may never show up in a recorded value. Yammer Histogram, on the other hand, uses reservoir sampling. The reported value is always one of the recorded values, and is likely more accurate. Because of this, the Histogram type in client metric hasn't been used widely. It would be useful to improve Histogram in the client metric to be more accurate. 

      Attachments

        Activity

          People

            Unassigned Unassigned
            junrao Jun Rao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: