1

I would like to limit metrics

http.server.requests.seconds to a single method and uri.

Currently, I can see that all URIs are being metered (eg. /actuator/health)

Is this possible?

pixel
  • 24,905
  • 36
  • 149
  • 251

1 Answers1

1

I registered MeterRegistryCustomizer bean and called meterFilter:

...
.meterFilter(MeterFilter.deny { id ->
            val uri = id.getTag("uri")
            uri != null && uri.startsWith("/actuator")
        })
pixel
  • 24,905
  • 36
  • 149
  • 251