spring-boot
spring-boot copied to clipboard
Spring Boot Actuator does not show http.server.requests in metrics endpoint after spring-boot upgrade to 3.*
I do have a spring boot project developed using Java 17 in which I am adding the spring boot actuator and Prometheus to use the metrics endpoint to analyze the API http.server.requests.
I do check metrics using http://localhost:8080/metrics I cannot find http.server.requests in response. It was working fine with the older spring-boot (2) version.
Java: openjdk 17.0.10
Dependencies
org.springframework.boot:spring-boot:3.1.10 (c) org.springframework.boot:spring-boot-actuator:3.1.10 (c) org.springframework.boot:spring-boot-actuator-autoconfigure:3.1.10 (c) org.springframework.boot:spring-boot-starter:3.1.10 (c) org.springframework.boot:spring-boot-starter-actuator:3.1.10 (c)
io.micrometer:micrometer-core:1.11.10 (c) io.micrometer:micrometer-observation:1.11.10 (c) io.micrometer:micrometer-registry-prometheus:1.11.10
Config
{
"management.metrics.distribution.percentiles-histogram.http.server.requests": {
"value": "true"
},
"management.endpoint.health.show-details": {
"value": "always"
},
"management.endpoints.web.exposure.include": {
"value": "*"
}
}
Please let me know if you need any additional info or logs.
Can you share a minimal sample application (a single hello web endpoint is enough) that reproduces the problem? Ideally something we can git clone or unzip. Thanks!
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.