So I have a Spring Boot application using spring-boot-actuator. By defining the spring.metrics.export.statsd.host property, a StatsdMetricWriter is instantiated automagically and, for counters and gauges, everything is working fine.
For timers however, things are a bit awkward. For Java8, Spring Boot is automagically creating a BufferGaugeService instance - which results in timer values being reported basically like a gauge: the last value every 5s (or whatever it is, one might configure it as well). This basically renders timer metrics useless, as all the wonderful things StatsD does with those is skewed.
Now one could fall back to using the pre-Java8 default DefaultGaugeService, but then again, for counters the BufferCounterService is just fine. looking at MetricRepositoryAutoConfiguration, setting this up manually seems to be non-trivial and brittle regarding future updates.
Any advice on how to proceed here? Or is there some blue print providing some inspiration?
Current situation aside: are there some plans to come up with a BufferTimerService or a TimerService in the first place?