-
Notifications
You must be signed in to change notification settings - Fork 40.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document the need to switch to io.micrometer:micrometer-registry-prometheus-simpleclient to use the Prometheus push gateway #40993
Comments
This is covered in the release notes:
We should update the reference documentation to note the need to downgrade to 0.x if you want to use the push gateway. |
When I try to use the Prometheus push gateway in Spring Boot version 3.3.0 as described in the documentation I get the error
Parameter 0 of constructor in com.example.demo.Service required a bean of type 'org.springframework.boot.actuate.metrics.export.prometheus.PrometheusPushGatewayManager' that could not be found.
When changing the
micrometer.version
to 1.21.1 everything works as expected. I've created an example project to demonstrate the issue: https://github.com/pvdlageweg/spring-boot-push-gateway-not-working/tree/mainSimple run with
mvn spring-boot:run
to see the error. Uncomment line 18 in the pom.xml and run again and the error is gone.The text was updated successfully, but these errors were encountered: