I am having existing Spring Boot application and I want to do monitoring the application through actuator.I tried with http endpoints and it is working fine for me. Instead of http end points I need JMX end points for my existing running application.
Asked
Active
Viewed 2,887 times
1 Answers
1
If you add spring-boot-starter-actuatordependency in your build.gradle or pom.xml file you will have JMX bean enabled by default as well as HTTP Endpoints.
You can use JConsole in order to view your JMX exposed beans. You'll find more info about this here.
More details about how to access JMX endpoints here.
Dina Bogdan
- 3,616
- 3
- 24
- 44
-
How can I access the JMX endpoints from another client application? I am having a spring boot client application where I will get the info from actuator jmx endpoints and need to log the info getting from jmx endpoints. – StruggleLion May 13 '19 at 06:34
-
I am new to Spring Boot actuator . Which mode will be the good choice ? Whether "JMX" or "REST" – StruggleLion May 13 '19 at 08:05
-
1It's not REST, it's HTTP. REST is an architectural style o developing applications. The http endpoints that are exposed by Actuator are delivering you metrics in Prometheus format, IMO the best choice is to use that Prometheus metrics, because they are the defacto standard of metrics in Cloud Native World. Even cncf.io has promoted Prometheus Metrics. – Dina Bogdan May 13 '19 at 08:08
-
Thanks for the update. Is there any comparison document available between "JMX" and "HTTP" where we can get the exact pros and cons of each mode . – StruggleLion May 13 '19 at 09:36