Prometheus managed GKE stopped collecting metrics after Micrometer dependency update

Hi,

I use Prometheus to monitor Java microservices. After updating the Micrometer dependency, the collections stopped working. I updated the following versions:

implementation 'io.micrometer:micrometer-registry-prometheus:1.12.3'
implementation 'io.micrometer:micrometer-tracing-bridge-otel:1.2.3'

Previously, I used:

implementation 'io.micrometer:micrometer-registry-prometheus:1.11.5'
implementation 'io.micrometer:micrometer-tracing-bridge-otel:1.1.6'

I tested a few things and the path /actuator/prometheus returns data in both the new and old versions of Micrometer. I'm a bit lost, does anyone have any ideas?

Additional information:

  • I am using Spring Boot 3.2.3.
  • I am using the Micrometer Console to monitor the metrics.

I have already tried:

  • Checking the Prometheus logs for errors.
  • Checking the application logs for errors.

I am still not sure what the problem is.

Any help would be appreciated.

1 1 146
1 REPLY 1

Hello @julio-costa,

Welcome to Google Cloud Community!

You might want to double-check the application logs for any specific errors or warnings related to Micrometer or Prometheus after the update. Look for keywords like micrometer, prometheus, metrics, registration or error.

Make sure your Micrometer configuration hasn't changed unintentionally during the update process. Verify that metrics are still being registered with the micrometer-registry-prometheus registry.

If you find anything that would likely be useful, don't hesitate to post back here with any questions. We are delighted to try and help.

Thanks!