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 have already tried:
I am still not sure what the problem is.
Any help would be appreciated.
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!