Open trustin opened 1 year ago
@anuraaga @mauhiz Do you remember anything about this when we chose the above defaults?
Was I involved? I always thought this logic to be weird :D
By the way: I think the current trend is to define a MeterFilter to configure most of these properties, not to set them directly on DistributionConfig. https://micrometer.io/docs/concepts#_configuring_distribution_statistics
ref: https://github.com/line/armeria/pull/1226 (let me revisit here next monday)
Currently, Armeria uses the default
DistributionStatisticConfig
of:When we define the above defaults, our intention was to rotate the buffer every minute, as explained in the comments:
However, according to
TimeWindowMax.rotate()
: https://github.com/micrometer-metrics/micrometer/blob/v1.7.1/micrometer-core/src/main/java/io/micrometer/core/instrument/distribution/TimeWindowMax.java#L118-L145it seems to me that the buffers are rotated every 3 minutes.
Action item: Double check if the buffers are rotated every minute with the current defaults. Change the defaults if we were mistaken.