I'm trying to set up a JMX monitoring for a comand line app build with spring-boot
.
According to https://github.com/spring-projects/spring-boot/tree/master/spring-boot-actuator I just have to add the dependency:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
Now I start my app, open VisualVM and I already see my application PID.
But how can I now access the metrics like /health
etc that are mentioned on the actuator
page? As this is a comand line app, I don't have any HTTP path that I can execute.
How can I see those metrics via JXM?