PacktPublishing / PacktPublishing/Microservices-with-Spring-Boot-and-Spring-Cloud-Fourth-Edition
https://health.minikube.me/actuator/prometheus failing
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 47
- Forks
- 35
- PR merge metrics
- No merged PRs in 30d
Description
Here,
microservices-chp20\config-repo\application.yml one configuration is missing :
management.prometheus.metrics.export.enabled: true
Prometheus export can remain disabled unless explicitly enabled depending on conditions.
Without this property spring boot will not expose this url :
https://health.minikube.me/actuator/prometheus
While running the test you might get this error :
Prometheus metrics tests Test FAILED, EXPECTED HTTP Code: 200, GOT: 404, WILL ABORT! - Failing command: curl -ks https://health.minikube.me/actuator/prometheus -w "%{http_code}" - Response Body: {"timestamp":"2026-04-19T07:01:08.618+00:00","path":"/actuator/prometheus","status":404,"error":"Not Found","requestId":"7cea6302-66","message":"No static resource actuator/prometheus."}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open microservices-chp20/config-repo/application.yml and inspect the existing management configuration. Add the missing Prometheus export setting, then run the Prometheus metrics test or curl https://health.minikube.me/actuator/prometheus. Done means the endpoint returns HTTP 200 instead of 404.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- backend, observability
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 85/100