1

I am using springboot gateway 2.0.4.RELEASE.

<dependency>
  <groupId>io.micrometer</groupId>
  <artifactId>micrometer-registry-prometheus</artifactId>
</dependency>

After adding this dependency, it is exposing all metrics to prometheus endpoint.

I want to disable some of the metrics from exposing through /actuator/prometheus endpoint.

Let's say I want to disable

  1. gateway_requests_seconds_count
  2. gateway_requests_seconds_sum
  3. gateway_requests_seconds_max

Does anyone know how can I achieve this ?

Thanks

Alpesh

Alpesh Jikadra
  • 1,692
  • 3
  • 18
  • 38
  • 2
    This should be possible with [Meter filters](https://micrometer.io/docs/concepts#_meter_filters). – slauth Sep 13 '21 at 12:41

0 Answers0