Skip to content
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

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

Open
strivedi7 opened this issue Apr 24, 2024 · 2 comments
Labels
status: feedback-reminder We've sent a reminder that we need additional information before we can continue status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged

Comments

@strivedi7
Copy link

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.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 24, 2024
@bclozel
Copy link
Member

bclozel commented Apr 25, 2024

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 bclozel added the status: waiting-for-feedback We need additional information before we can continue label Apr 25, 2024
@spring-projects-issues
Copy link
Collaborator

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 spring-projects-issues added the status: feedback-reminder We've sent a reminder that we need additional information before we can continue label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: feedback-reminder We've sent a reminder that we need additional information before we can continue status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

No branches or pull requests

3 participants