-
Couldn't load subscription status.
- Fork 41.6k
Description
We are using Spring Boot 2.0.3 actuators.
We are using MetricAutoConfiguration to use the Micrometer global CompositeMeterRegistry and we have StatsdMeterRegistry and JmxMeterRegistry both in the classpath. We are seeing a count error in the Spring Boot actuator MetricsEndpoint where the value for a single meter counter is being doubled at:
Line 135 in 80da9cf
| return Statistic.MAX.equals(statistic) ? Double::max : Double::sum; |
For example, we have a metric for keeping track of 200 HTTP responses and the metric is being added to both StepMeterRegisty objects. We would expect this as the value has been added to the global CompositeMeterRegistry which would be sent to each StepMeterRegistry for publishing. But why is the default behavior in the MetricsEndpoint to sum these values and essentially double the count metric when the metric is the same?