The documentation on some JMX metrics mentions a time window on which some of the metrics are averaged.
For example here: https://docs.confluent.io/current/kafka/monitoring.html
What is this time window? Is it fixed, configurable, or is it dynamically adjusted?
request-size-avg::
The average size of all requests in the window for a broker.
Thanks for your help.
request-size-avg is a metric computed from kafka-clients (producer/consumer).
The window is configurable via the config : metrics.sample.window.ms
From the official documentation :
The window of time a metrics sample is computed over.
The value for this config is setted to 30000 (30 seconds) by default. This config is currently supported by Consumer, Producer, Kafka Connect and Kafka Streams.
Note that additional configs may influenced metrics computation : metrics.num.samples