We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Steps to reproduce:
Required application.properties
application.properties
management.endpoints.web.exposure.include = *
Goto start.spring.io and generate a project with Web and Actuator (or use this)
Unzip, start and curl the metrics endpoint:
curl -v localhost:8080/actuator/metrics | jq
Expected and retrieved output:
{ "names": [ "jvm.buffer.count", "jvm.buffer.memory.used", "jvm.buffer.total.capacity", "jvm.classes.loaded", "jvm.classes.unloaded", "jvm.gc.live.data.size", "jvm.gc.max.data.size", "jvm.gc.memory.allocated", "jvm.gc.memory.promoted", "jvm.gc.pause", "jvm.memory.committed", "jvm.memory.max", "jvm.memory.used", "jvm.threads.daemon", "jvm.threads.live", "jvm.threads.peak", "jvm.threads.states", "logback.events", "process.cpu.usage", "process.files.max", "process.files.open", "process.start.time", "process.uptime", "system.cpu.count", "system.cpu.usage", "system.load.average.1m", "tomcat.sessions.active.current", "tomcat.sessions.active.max", "tomcat.sessions.alive.max", "tomcat.sessions.created", "tomcat.sessions.expired", "tomcat.sessions.rejected" ] }
Now, add
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> </dependency>
or use this project.
Curl the actuator again and observe
{ "names": [ "hikaricp.connections", "hikaricp.connections.acquire", "hikaricp.connections.active", "hikaricp.connections.creation", "hikaricp.connections.idle", "hikaricp.connections.max", "hikaricp.connections.min", "hikaricp.connections.pending", "hikaricp.connections.timeout", "hikaricp.connections.usage", "jdbc.connections.active", "jdbc.connections.idle", "jdbc.connections.max", "jdbc.connections.min", "tomcat.sessions.active.current", "tomcat.sessions.active.max", "tomcat.sessions.alive.max", "tomcat.sessions.created", "tomcat.sessions.expired", "tomcat.sessions.rejected" ] }
This is unexpected.
The text was updated successfully, but these errors were encountered:
Thanks for the report, this is a duplicate of #26630.
Sorry, something went wrong.
Oh, sorry and thanks for the pointer!
Add a test whether metrics work or not.
480d436
See: spring-projects/spring-boot#26698
No branches or pull requests
Steps to reproduce:
Required
application.properties
management.endpoints.web.exposure.include = *
Goto start.spring.io and generate a project with Web and Actuator (or use this)
Unzip, start and curl the metrics endpoint:
Expected and retrieved output:
Now, add
or use this project.
Curl the actuator again and observe
This is unexpected.
The text was updated successfully, but these errors were encountered: