spring-boot icon indicating copy to clipboard operation
spring-boot copied to clipboard

Spring Boot Actuator does not show http.server.requests in metrics endpoint after spring-boot upgrade to 3.*

Open strivedi7 opened this issue 1 year ago • 2 comments

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.

strivedi7 avatar Apr 24 '24 23:04 strivedi7

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!

bclozel avatar Apr 25 '24 05:04 bclozel

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.

spring-projects-issues avatar May 02 '24 06:05 spring-projects-issues

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.

spring-projects-issues avatar May 09 '24 06:05 spring-projects-issues