DL1231 opened a new pull request, #20152:
URL: https://github.com/apache/kafka/pull/20152

   Currently, it appears that the small sampling window size is causing 
distortion in metrics with larger time windows.
   The default configuration samples two windows, each 30 seconds long. If 
rebalances occur twice—once at the 1st minute and again at the 59th minute—the 
expected value for rebalance-rate-per-hour should be 2.
   However, when calculating at the 59th minute:
   - The window length is 2 × 30s = 60 seconds
   - The system only detects 1 rebalance (the latest event within the 60s 
window)
   - The calculation becomes: 1 / 60s = 60 rebalances per hour
   Thus, rebalance-rate-per-hour incorrectly reports 60.
   
   This patch manually specifies the timeWindow as 1 hour when registering 
hourly monitoring metrics.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to