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/main
Simple 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.