How to specify single endpoint to be metered in micrometer in Spring Boot?
Solution 1:
I registered MeterRegistryCustomizer
bean and called meterFilter
:
...
.meterFilter(MeterFilter.deny { id ->
val uri = id.getTag("uri")
uri != null && uri.startsWith("/actuator")
})